Commit d15cb27ae564467791322fb5221af15f1813e496

Authored by u123231312
1 parent 3980f023

no message

... ... @@ -313,7 +313,7 @@ class Auth extends Common
public function operateList(){
if(Request::isAjax()){
//获取运营人员列表
$list= file_get_contents('http://xt04.colorcun.com/index.php?service=App.User.GetOperateList');
$list= file_get_contents(ON_LINE.'App.User.GetOperateList');
$array = json_decode($list,TRUE);
foreach ($array['data'] as $key=>$val){
if($val['status']==1){
... ... @@ -358,7 +358,7 @@ class Auth extends Common
public function operateDel(){
if(Request::isAjax()){
$data = Request::except('file');
$arr= file_get_contents("http://xt04.colorcun.com/index.php?service=App.Seller.DelSellerInfo&id=".$data['id']);
$arr= file_get_contents(ON_LINE."App.Seller.DelSellerInfo&id=".$data['id']);
$arr = json_decode($arr,TRUE);
if($arr['data'][0]==1){
$result['code'] = 1;
... ...
... ... @@ -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;
... ...