|
@@ -90,7 +90,8 @@ class Notify extends Api
|
|
|
$user_model = new \app\admin\model\User();
|
|
|
$number = $smslog_model->where('order_no',$out_trade_no)->field('number,user_id')->find();
|
|
|
$user_number = $user_model->where('id',$number['user_id'])->value('sms_number');
|
|
|
- $user_model->isUpdate('true',['id'=>$number['user_id']])->save(['sms_number'=>$number['number']+$user_number]);
|
|
|
+ $num = $number['number']+$user_number;
|
|
|
+ $user_model->isUpdate('true',['id'=>$number['user_id']])->save(['sms_number'=>$num]);
|
|
|
$smslog_model->isUpdate('true',['order_no'=>$out_trade_no])->save(['status'=>1]);
|
|
|
|
|
|
//你可以在此编写订单逻辑
|