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

+ 2 - 2
app/controller/api/Notify.php

@@ -47,10 +47,10 @@ class Notify
47 47
                         case 'huafei':
48 48
                             //话费充值支付成功推送
49 49
                             try{
50
-                                $order_data = Db::name('rrx_order_huafei_hf') -> where('order_no', $requestId[0])->find();
50
+                                $order_data = Db::name('order_huafei_hf') -> where('order_no', $requestId[0])->find();
51 51
                                 if($order_data['status']==1) return false;
52 52
                                 $pay_type = $pay_type == 1 ? 'wx' : 'al';
53
-                                Db::name('rrx_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(['rand'=>$requestId[1],'pay_type'=>1,'status'=>1]);
54 54
                             }catch (\Exception $e) {
55 55
                                 Db::name('log')->insert(['data'=>'话费充值支付回调错误:'.$e->getFile().':'.$e->getLine().'【'.$e->getMessage().'】']);
56 56
                             }