|
@@ -52,7 +52,7 @@ class UserService
|
|
* 购买vip
|
|
* 购买vip
|
|
*/
|
|
*/
|
|
public function buy_vip($param){
|
|
public function buy_vip($param){
|
|
- throw new Exception("选择的会员id=".$param['id']);
|
|
|
|
|
|
+
|
|
if(empty($param['id'])){
|
|
if(empty($param['id'])){
|
|
throw new Exception("参数错误");
|
|
throw new Exception("参数错误");
|
|
}
|
|
}
|
|
@@ -77,6 +77,7 @@ class UserService
|
|
'total_fee' => $ins['price'],
|
|
'total_fee' => $ins['price'],
|
|
'payment' => $ins['payment'],
|
|
'payment' => $ins['payment'],
|
|
];
|
|
];
|
|
|
|
+ throw new Exception(json_encode($pay_param));
|
|
return PayService::pay($pay_param);
|
|
return PayService::pay($pay_param);
|
|
}
|
|
}
|
|
|
|
|