feat(StoreController): 更新了 StoreController 中的用户识别方式
This commit is contained in:
parent
f384483d22
commit
ed5d63035b
@ -45,15 +45,13 @@ class StoreController extends BaseApiController
|
||||
{
|
||||
$params = (new UserValidate())->post()->goCheck('rechargeStoreMoney');
|
||||
$auth_code = $this->request->post('auth_code'); //微信支付条码
|
||||
$params['uid'] = $this->userId;
|
||||
$params['channel_type'] = $this->userInfo['terminal'];
|
||||
$find=User::where('mobile',$params['mobile'])->find();
|
||||
if(!$find){
|
||||
$find=UserUserLogic::StoreAdd($params);
|
||||
}
|
||||
$data=[
|
||||
'store_id'=>$params['store_id'],
|
||||
'uid'=>$find['uid'],
|
||||
'uid'=>$find['id'],
|
||||
'staff_id'=>0,
|
||||
'order_id'=>getNewOrderId('CZ'),
|
||||
'price'=>1000,
|
||||
|
Loading…
x
Reference in New Issue
Block a user