|
@@ -355,8 +355,7 @@ class WareHouse extends Base
|
|
|
// }
|
|
|
|
|
|
$userCommon = \app\admin\common\User::getIns();
|
|
|
- $tmp = $userCommon->handle('bInfo',['companyNo'=>$companyNo]);
|
|
|
- if(!isset($tmp['code']) || $tmp['code']!=0) return json_show($tmp['code'],$tmp['message'],$tmp['data']);
|
|
|
+ $tmp = $userCommon->handle('getCodeAndName',['code'=>$companyNo]);
|
|
|
if(empty($tmp['data'])) return json_show(1004,'业务企业未找到');
|
|
|
|
|
|
$user = $userCommon->handle('userinfo',['id'=>$contactor]);
|
|
@@ -386,7 +385,7 @@ class WareHouse extends Base
|
|
|
'mobile'=>$mobile,
|
|
|
'position'=>$position,
|
|
|
'companyNo' => $companyNo,
|
|
|
- 'companyName' => $tmp['data']['name'],
|
|
|
+ 'companyName' => $tmp['data'][$companyNo],
|
|
|
'updaterid'=>$this->uid,
|
|
|
'updater'=>$this->uname,
|
|
|
"addrs_code"=>json_encode($addrs_code),
|