Commit bbe2149386c41b5023fccfe8db1838369ce5bfb3

Authored by u123231312
1 parent ac9c7cf2

no message

@@ -180,7 +180,7 @@ class Template extends Common{ @@ -180,7 +180,7 @@ class Template extends Common{
180 return $result; 180 return $result;
181 } 181 }
182 //调用API 182 //调用API
183 - //http://www.dc-api.com/public/index.php?service=App.Tables.BatchQRcode 测试环境 183 + //App.Tables.BatchQRcode 测试环境
184 //http://xt04.colorcun.com/?service=App.Tables.BatchQRcode 正式环境 184 //http://xt04.colorcun.com/?service=App.Tables.BatchQRcode 正式环境
185 $param=array( 185 $param=array(
186 'num' =>$num, 186 'num' =>$num,
@@ -280,7 +280,7 @@ class Template extends Common{ @@ -280,7 +280,7 @@ class Template extends Common{
280 $data = Request::except('file'); 280 $data = Request::except('file');
281 $limit = '&x='.$data["page"].'&y='.$data["limit"]; 281 $limit = '&x='.$data["page"].'&y='.$data["limit"];
282 //获取运营人员列表 282 //获取运营人员列表
283 - $list= file_get_contents('http://www.dc-api.com/public/index.php?service=App.Seller.GetSellerList'.$limit); 283 + $list= file_get_contents(UNDER_LINE.'App.Seller.GetSellerList'.$limit);
284 $array = json_decode($list,TRUE); 284 $array = json_decode($list,TRUE);
285 if($array['ret']==200){ 285 if($array['ret']==200){
286 $result = ['code'=>0,'msg'=>'获取成功!','data'=>$array['data'][0],'rel'=>1]; 286 $result = ['code'=>0,'msg'=>'获取成功!','data'=>$array['data'][0],'rel'=>1];
@@ -298,7 +298,7 @@ class Template extends Common{ @@ -298,7 +298,7 @@ class Template extends Common{
298 public function configMer(){ 298 public function configMer(){
299 //获取分类 299 //获取分类
300 $data = Request::except('file'); 300 $data = Request::except('file');
301 - $list= file_get_contents('http://www.dc-api.com/public/index.php?service=App.Cookbook.GetCookbookByClass&sellerid='.$data['id']); 301 + $list= file_get_contents(UNDER_LINE.'App.Cookbook.GetCookbookByClass&sellerid='.$data['id']);
302 $array = json_decode($list,TRUE); 302 $array = json_decode($list,TRUE);
303 $this->assign ( 'data',$data); //商户信息 303 $this->assign ( 'data',$data); //商户信息
304 $this->assign('list',$array['data'][0]['list']); //该商户所有分类下的菜品 304 $this->assign('list',$array['data'][0]['list']); //该商户所有分类下的菜品
@@ -311,7 +311,7 @@ class Template extends Common{ @@ -311,7 +311,7 @@ class Template extends Common{
311 $data = Request::except('file'); 311 $data = Request::except('file');
312 if(Request::isAjax()){ 312 if(Request::isAjax()){
313 //获取分类下所有菜品 313 //获取分类下所有菜品
314 - $list= file_get_contents('http://www.dc-api.com/public/index.php?service=App.Cookbook.GetCookbookByClassId&ClassId='.$data['classid']); 314 + $list= file_get_contents(UNDER_LINE.'App.Cookbook.GetCookbookByClassId&ClassId='.$data['classid']);
315 $array = json_decode($list,TRUE); 315 $array = json_decode($list,TRUE);
316 return $array['data']['data']; 316 return $array['data']['data'];
317 } 317 }
@@ -352,7 +352,7 @@ class Template extends Common{ @@ -352,7 +352,7 @@ class Template extends Common{
352 if(Request::isAjax()){ 352 if(Request::isAjax()){
353 $data = Request::except('file'); 353 $data = Request::except('file');
354 //接口调起 354 //接口调起
355 - $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']); 355 + $list= file_get_contents(UNDER_LINE.'App.Cookbook.SetCookbookById&sellerid='.$data['sellerid'].'&id='.$data['dishname'].'&dishesVideo='.$data['dishesVideo'].'&dishesGif='.$data['dishesGif']);
356 $array = json_decode($list,TRUE); 356 $array = json_decode($list,TRUE);
357 if($array['data']['data']==1){ 357 if($array['data']['data']==1){
358 $result['code'] = 1; 358 $result['code'] = 1;
@@ -15,6 +15,8 @@ @@ -15,6 +15,8 @@
15 error_reporting(E_ERROR | E_WARNING | E_PARSE); 15 error_reporting(E_ERROR | E_WARNING | E_PARSE);
16 define("MAX_MENU_LENGTH",'3'); 16 define("MAX_MENU_LENGTH",'3');
17 define("MAX_SUB_MENU_LENGTH","5"); 17 define("MAX_SUB_MENU_LENGTH","5");
  18 +define("ON_LINE","http://xt04.colorcun.com/index.php?service=");
  19 +define("UNDER_LINE","http://www.dc-api.com/public/index.php?service=");
18 return [ 20 return [
19 // 应用名称 21 // 应用名称
20 'app_name' => '', 22 'app_name' => '',