xialei 1 год назад
Родитель
Сommit
83f58b726c
1 измененных файлов с 8 добавлено и 1 удалено
  1. 8 1
      app/controller/api/Notify.php

+ 8 - 1
app/controller/api/Notify.php

@@ -50,7 +50,14 @@ class Notify
50 50
                             try{
51 51
                                 $order_data = Db::name('order_huafei_hf') -> where('order_no', $requestId[0])->find();
52 52
                                 if($order_data['status']==1) return false;
53
-                                Db::name('order_huafei_hf')->where('order_no',$requestId[0])->update(['rand'=>$requestId[1],'pay_type'=>$pay_type,'status'=>1]);
53
+                                Db::name('order_huafei_hf')->where('order_no',$requestId[0])->update([
54
+                                    'rand'=>$requestId[1],
55
+                                    'pay_type'=>$pay_type,
56
+                                    'pay_wx'=>systemConfig('pay_wx'),
57
+                                    'payment_id'=>$post_data_str['id'],
58
+                                    'reverse_amt'=>$post_data_str['pay_amt'],
59
+                                    'status'=>1
60
+                                ]);
54 61
                             }catch (\Exception $e) {
55 62
                                 Db::name('log')->insert(['data'=>'话费充值支付回调错误:'.$e->getFile().':'.$e->getLine().'【'.$e->getMessage().'】']);
56 63
                             }