更新逻辑
This commit is contained in:
parent
e29afd5c50
commit
c4b821d3ea
@ -143,14 +143,13 @@ class MerchantIntentionRepository extends BaseRepository
|
||||
* @return void
|
||||
* @throws \think\db\exception\DbException
|
||||
*/
|
||||
public function updateIdent($id, $data,$admin_id)
|
||||
public function updateIdent($id, $data)
|
||||
{
|
||||
//通过就 更改商户的身份
|
||||
$intention = $this->search(['mer_intention_id' => $id])->find();
|
||||
if (!$intention)
|
||||
throw new ValidateException('信息不存在');
|
||||
$uid = $intention->uid;
|
||||
$intention->admin_id = $admin_id;
|
||||
if($data['status'] == 1){
|
||||
$check = Merchant::getDB()->where('uid', $uid)->value('mer_id');//商户
|
||||
|
||||
|
@ -92,10 +92,10 @@ class MerchantIntention extends BaseController
|
||||
{
|
||||
if (!$this->repository->getWhereCount(['mer_intention_id' => $id, 'is_del' => 0]))
|
||||
return app('json')->fail('数据不存在');
|
||||
$data = $this->request->params(['status','fail_msg']);
|
||||
$data = $this->request->params(['status','fail_msg','admin_id']);
|
||||
if(empty($data['status'])) return app('json')->fail('缺失参数');
|
||||
$adminid = $request->adminId();
|
||||
$this->repository->updateIdent($id, $data,$adminid);
|
||||
|
||||
$this->repository->updateIdent($id, $data);
|
||||
return app('json')->success('审核通过');
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user