| xqd
@@ -286,7 +286,7 @@ class UserController extends Controller
|
|
|
$user = auth('api')->user();
|
|
|
$param['id'] = $request->id; //vip id
|
|
|
$param['user_id'] = $user->id;
|
|
|
- $param['payment'] = $request->payment; //支付方式 1微信 2支付宝
|
|
|
+ $param['payment'] = $request->post('payment',1); //支付方式 1微信 2支付宝
|
|
|
$res = $this->userService->buy_vip($param);
|
|
|
//throw new Exception(json_encode($res));
|
|
|
}catch (\Exception $exception){
|