diff --git a/api/controllers/wxapp/liche/Bsrv.php b/api/controllers/wxapp/liche/Bsrv.php index 104ea206..ef3dfb5b 100644 --- a/api/controllers/wxapp/liche/Bsrv.php +++ b/api/controllers/wxapp/liche/Bsrv.php @@ -10,7 +10,7 @@ defined('WXAPP_APP') OR exit('No direct script access allowed'); require_once APPPATH.'controllers/wxapp/Wxapp.php'; class Bsrv extends Wxapp{ - private $biz_lists = [ + private $df_lists = [ [ 'name'=>'黄伟江','biz_name'=>'福州胜华泰汽车销售有限公司','address'=>'福州市仓山区闽江大道112号', 'mobile'=>'18106055390','help_mobile'=>'18060789595','lat'=>'26.06782','lng'=>'119.2541','city_id'=>'350100','city_name'=>'福州' @@ -27,7 +27,7 @@ class Bsrv extends Wxapp{ function __construct($inputs, $app_key){ parent::__construct($inputs, $app_key); - $this->login_white = array();//登录白名单 + $this->login_white = array('get');//登录白名单 $this->majia_white = array();//超级管理员披上马甲可操作权限 $this->check_status = array();//用户状态校验 $this->check_mobile = array();//需要手机号 @@ -44,15 +44,18 @@ class Bsrv extends Wxapp{ * @throws Exception */ protected function get(){ - $oid = $this->input_param('oid'); - $order = $this->receiver_orders_v2_model->get(['id'=>$oid]); - if(!$order){ - throw new Exception('订单不存在', API_CODE_FAIL); - } + $brand_id = $this->input_param('brand_id'); +// $order = $this->receiver_orders_v2_model->get(['id'=>$oid]); +// if(!$order){ +// throw new Exception('订单不存在', API_CODE_FAIL); +// } // $re_biz = $this->biz_model->get(['id' => $order['biz_id']]); $city_id = '350200'; // $row = $this->srvcenter_model->get(['city_id'=>$city_id]); - $rows = $this->biz_lists; + $biz_lists = []; + $biz_lists[1] = $this->df_lists; + $biz_lists[6] = $this->df_lists; + $rows = $biz_lists[$brand_id] ? $biz_lists[$brand_id] : []; $data = [ 'city_id' => $city_id, 'inline_info' => [ diff --git a/api/controllers/wxapp/liche/User.php b/api/controllers/wxapp/liche/User.php index 98674d85..21a3804b 100644 --- a/api/controllers/wxapp/liche/User.php +++ b/api/controllers/wxapp/liche/User.php @@ -480,7 +480,8 @@ class User extends Wxapp{ 'ins_company' => $ins_company, 'insure' => $insure, 'other' => $other, - 'show_srv' => $show_srv + 'show_srv' => $show_srv, + 'brand_id' => $val['brand_id'], ]; } }