Procházet zdrojové kódy

话费回调记录保存

xialei před 1 rokem
rodič
revize
83f58b726c
1 změnil soubory, kde provedl 8 přidání a 1 odebrání
  1. 8 1
      app/controller/api/Notify.php

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

@@ -50,7 +50,14 @@ class Notify
50
                             try{
50
                             try{
51
                                 $order_data = Db::name('order_huafei_hf') -> where('order_no', $requestId[0])->find();
51
                                 $order_data = Db::name('order_huafei_hf') -> where('order_no', $requestId[0])->find();
52
                                 if($order_data['status']==1) return false;
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
                             }catch (\Exception $e) {
61
                             }catch (\Exception $e) {
55
                                 Db::name('log')->insert(['data'=>'话费充值支付回调错误:'.$e->getFile().':'.$e->getLine().'【'.$e->getMessage().'】']);
62
                                 Db::name('log')->insert(['data'=>'话费充值支付回调错误:'.$e->getFile().':'.$e->getLine().'【'.$e->getMessage().'】']);
56
                             }
63
                             }