コード例 #1
0
 public function staffList()
 {
     $merchantID = I('mer_id');
     $merchantLogic = new l\MerchantLogic();
     $staffData = $merchantLogic->getStaffList($merchantID);
     $staffList = $staffData['datas'];
     $role = session('user_info.role');
     $this->assign('role', $role);
     $this->assign('staffList', $staffList);
     $this->assign('mer_id', $merchantID);
     $this->display();
 }
コード例 #2
0
ファイル: BrandController.class.php プロジェクト: waqt/kdweb
 /**
  * 添加订单时获取品牌授权商户  
  * @return array
  */
 public function listBrandMerchant()
 {
     $brand_name = I('brand_name');
     $initialLogic = new l\InitialLogic();
     $brandList = $initialLogic->getAllBrands();
     $merchant['brand_id'] = $brandList['Map'][$brand_name];
     $merchantLogic = new l\MerchantLogic();
     //API 获取商户数据
     $merchant_data = $merchantLogic->getMerchantList($merchant, null, 0);
     $merchant_list = $merchant_data['datas'];
     //addErrorLog('appliance','loginc','current',$current);
     $this->assign('brandName', $brand_name);
     $this->assign('merchant_list', $merchant_list);
     $this->display();
 }