Commit bbe2149386c41b5023fccfe8db1838369ce5bfb3

Authored by u123231312
1 parent ac9c7cf2

no message

... ... @@ -180,7 +180,7 @@ class Template extends Common{
return $result;
}
//调用API
//http://www.dc-api.com/public/index.php?service=App.Tables.BatchQRcode 测试环境
//App.Tables.BatchQRcode 测试环境
//http://xt04.colorcun.com/?service=App.Tables.BatchQRcode 正式环境
$param=array(
'num' =>$num,
... ... @@ -280,7 +280,7 @@ class Template extends Common{
$data = Request::except('file');
$limit = '&x='.$data["page"].'&y='.$data["limit"];
//获取运营人员列表
$list= file_get_contents('http://www.dc-api.com/public/index.php?service=App.Seller.GetSellerList'.$limit);
$list= file_get_contents(UNDER_LINE.'App.Seller.GetSellerList'.$limit);
$array = json_decode($list,TRUE);
if($array['ret']==200){
$result = ['code'=>0,'msg'=>'获取成功!','data'=>$array['data'][0],'rel'=>1];
... ... @@ -298,7 +298,7 @@ class Template extends Common{
public function configMer(){
//获取分类
$data = Request::except('file');
$list= file_get_contents('http://www.dc-api.com/public/index.php?service=App.Cookbook.GetCookbookByClass&sellerid='.$data['id']);
$list= file_get_contents(UNDER_LINE.'App.Cookbook.GetCookbookByClass&sellerid='.$data['id']);
$array = json_decode($list,TRUE);
$this->assign ( 'data',$data); //商户信息
$this->assign('list',$array['data'][0]['list']); //该商户所有分类下的菜品
... ... @@ -311,7 +311,7 @@ class Template extends Common{
$data = Request::except('file');
if(Request::isAjax()){
//获取分类下所有菜品
$list= file_get_contents('http://www.dc-api.com/public/index.php?service=App.Cookbook.GetCookbookByClassId&ClassId='.$data['classid']);
$list= file_get_contents(UNDER_LINE.'App.Cookbook.GetCookbookByClassId&ClassId='.$data['classid']);
$array = json_decode($list,TRUE);
return $array['data']['data'];
}
... ... @@ -352,7 +352,7 @@ class Template extends Common{
if(Request::isAjax()){
$data = Request::except('file');
//接口调起
$list= file_get_contents('http://www.dc-api.com/public/index.php?service=App.Cookbook.SetCookbookById&sellerid='.$data['sellerid'].'&id='.$data['dishname'].'&dishesVideo='.$data['dishesVideo'].'&dishesGif='.$data['dishesGif']);
$list= file_get_contents(UNDER_LINE.'App.Cookbook.SetCookbookById&sellerid='.$data['sellerid'].'&id='.$data['dishname'].'&dishesVideo='.$data['dishesVideo'].'&dishesGif='.$data['dishesGif']);
$array = json_decode($list,TRUE);
if($array['data']['data']==1){
$result['code'] = 1;
... ...
... ... @@ -15,6 +15,8 @@
error_reporting(E_ERROR | E_WARNING | E_PARSE);
define("MAX_MENU_LENGTH",'3');
define("MAX_SUB_MENU_LENGTH","5");
define("ON_LINE","http://xt04.colorcun.com/index.php?service=");
define("UNDER_LINE","http://www.dc-api.com/public/index.php?service=");
return [
// 应用名称
'app_name' => '',
... ...