|
...
|
...
|
@@ -186,7 +186,7 @@ class Template extends Common{ |
|
|
|
'num' =>$num,
|
|
|
|
'flag' =>$flag,
|
|
|
|
);
|
|
|
|
$url = "http://xt04.colorcun.com/?service=App.Tables.BatchQRcode";
|
|
|
|
$url = ON_LINE."App.Tables.BatchQRcode";
|
|
|
|
$status = json_decode($this->requesthttp($url,$param),true);
|
|
|
|
if($status['ret']==200){
|
|
|
|
$result['msg'] = '二维码已生成!';
|
|
...
|
...
|
@@ -280,7 +280,7 @@ class Template extends Common{ |
|
|
|
$data = Request::except('file');
|
|
|
|
$limit = '&x='.$data["page"].'&y='.$data["limit"];
|
|
|
|
//获取运营人员列表
|
|
|
|
$list= file_get_contents(UNDER_LINE.'App.Seller.GetSellerList'.$limit);
|
|
|
|
$list= file_get_contents(ON_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(UNDER_LINE.'App.Cookbook.GetCookbookByClass&sellerid='.$data['id']);
|
|
|
|
$list= file_get_contents(ON_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(UNDER_LINE.'App.Cookbook.GetCookbookByClassId&ClassId='.$data['classid']);
|
|
|
|
$list= file_get_contents(ON_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(UNDER_LINE.'App.Cookbook.SetCookbookById&sellerid='.$data['sellerid'].'&id='.$data['dishname'].'&dishesVideo='.$data['dishesVideo'].'&dishesGif='.$data['dishesGif']);
|
|
|
|
$list= file_get_contents(ON_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;
|
...
|
...
|
|