更新提现
This commit is contained in:
parent
e6e2cc78c3
commit
837d9ed548
@ -62,7 +62,18 @@ class StoreExtractController extends BaseAdminController
|
||||
}
|
||||
return $this->fail(StoreExtractLogic::getError());
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 确认提现
|
||||
* @return \think\response\Json
|
||||
* @author admin
|
||||
* @date 2024/05/31 17:09
|
||||
*/
|
||||
public function enter()
|
||||
{
|
||||
$params = $this->request->post();
|
||||
$result = StoreExtractLogic::Enter($params);
|
||||
return $this->success('提现成功', [], 1, 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* @notes 删除门店提现
|
||||
|
@ -66,6 +66,8 @@ class StoreExtractLists extends BaseAdminDataLists implements ListsSearchInterfa
|
||||
$item->id_card=$find['id_card'];
|
||||
$item->openid=$openid;
|
||||
}
|
||||
$item->status_name=$item->status==1?"通过":"审核中";
|
||||
$item->pay_status_name=$item->pay_status==1?"已转账":"未转账";
|
||||
})
|
||||
->toArray();
|
||||
}
|
||||
|
@ -40,6 +40,25 @@ class StoreExtractLogic extends BaseLogic
|
||||
throw new BusinessException($e->getMessage());
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @notes 确认提现
|
||||
* @param array $params
|
||||
* @return bool
|
||||
* @author admin
|
||||
* @date 2024/05/31 17:09
|
||||
*/
|
||||
public static function Enter(array $params): bool
|
||||
{
|
||||
Db::startTrans();
|
||||
try {
|
||||
StoreExtract::update(['status'=>1,'pay_status'=>1],['id'=>$params['id']]);
|
||||
Db::commit();
|
||||
return true;
|
||||
} catch (\Exception $e) {
|
||||
Db::rollback();
|
||||
throw new BusinessException($e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user