更新申请接口
This commit is contained in:
parent
230847a59b
commit
db870ba53e
@ -311,14 +311,14 @@ class MerchantIntention extends BaseController
|
|||||||
public function changeIdentity()
|
public function changeIdentity()
|
||||||
{
|
{
|
||||||
$data = $this->request->params([
|
$data = $this->request->params([
|
||||||
'type',
|
'type','mer_id'
|
||||||
]);
|
]);
|
||||||
if(empty($data['type'])){
|
if(empty($data['type'])){
|
||||||
return app('json')->fail('参数缺失请检查');
|
return app('json')->fail('参数缺失请检查');
|
||||||
}
|
}
|
||||||
if ($this->userInfo) $data['uid'] = $this->userInfo->uid;
|
$merchantInfo = Merchant::getDB()->where('mer_id',$data['mer_id'])->find();
|
||||||
$merchantInfo = Merchant::getDB()->where('uid',$this->userInfo->uid)->find();
|
|
||||||
if(empty($merchantInfo)) return app('json')->fail('没有该商户');
|
if(empty($merchantInfo)) return app('json')->fail('没有该商户');
|
||||||
|
$data['uid'] = $merchantInfo->uid;
|
||||||
$data['phone'] = $merchantInfo->mer_phone;
|
$data['phone'] = $merchantInfo->mer_phone;
|
||||||
$data['mer_name'] = $merchantInfo->mer_name;
|
$data['mer_name'] = $merchantInfo->mer_name;
|
||||||
$data['name'] = $merchantInfo->real_name;
|
$data['name'] = $merchantInfo->real_name;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user