Commit d15cb27ae564467791322fb5221af15f1813e496

Authored by u123231312
1 parent 3980f023

no message

@@ -313,7 +313,7 @@ class Auth extends Common @@ -313,7 +313,7 @@ class Auth extends Common
313 public function operateList(){ 313 public function operateList(){
314 if(Request::isAjax()){ 314 if(Request::isAjax()){
315 //获取运营人员列表 315 //获取运营人员列表
316 - $list= file_get_contents('http://xt04.colorcun.com/index.php?service=App.User.GetOperateList'); 316 + $list= file_get_contents(ON_LINE.'App.User.GetOperateList');
317 $array = json_decode($list,TRUE); 317 $array = json_decode($list,TRUE);
318 foreach ($array['data'] as $key=>$val){ 318 foreach ($array['data'] as $key=>$val){
319 if($val['status']==1){ 319 if($val['status']==1){
@@ -358,7 +358,7 @@ class Auth extends Common @@ -358,7 +358,7 @@ class Auth extends Common
358 public function operateDel(){ 358 public function operateDel(){
359 if(Request::isAjax()){ 359 if(Request::isAjax()){
360 $data = Request::except('file'); 360 $data = Request::except('file');
361 - $arr= file_get_contents("http://xt04.colorcun.com/index.php?service=App.Seller.DelSellerInfo&id=".$data['id']); 361 + $arr= file_get_contents(ON_LINE."App.Seller.DelSellerInfo&id=".$data['id']);
362 $arr = json_decode($arr,TRUE); 362 $arr = json_decode($arr,TRUE);
363 if($arr['data'][0]==1){ 363 if($arr['data'][0]==1){
364 $result['code'] = 1; 364 $result['code'] = 1;
@@ -186,7 +186,7 @@ class Template extends Common{ @@ -186,7 +186,7 @@ class Template extends Common{
186 'num' =>$num, 186 'num' =>$num,
187 'flag' =>$flag, 187 'flag' =>$flag,
188 ); 188 );
189 - $url = "http://xt04.colorcun.com/?service=App.Tables.BatchQRcode"; 189 + $url = ON_LINE."App.Tables.BatchQRcode";
190 $status = json_decode($this->requesthttp($url,$param),true); 190 $status = json_decode($this->requesthttp($url,$param),true);
191 if($status['ret']==200){ 191 if($status['ret']==200){
192 $result['msg'] = '二维码已生成!'; 192 $result['msg'] = '二维码已生成!';
@@ -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(UNDER_LINE.'App.Seller.GetSellerList'.$limit); 283 + $list= file_get_contents(ON_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(UNDER_LINE.'App.Cookbook.GetCookbookByClass&sellerid='.$data['id']); 301 + $list= file_get_contents(ON_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(UNDER_LINE.'App.Cookbook.GetCookbookByClassId&ClassId='.$data['classid']); 314 + $list= file_get_contents(ON_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(UNDER_LINE.'App.Cookbook.SetCookbookById&sellerid='.$data['sellerid'].'&id='.$data['dishname'].'&dishesVideo='.$data['dishesVideo'].'&dishesGif='.$data['dishesGif']); 355 + $list= file_get_contents(ON_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;