lizhen_gitee 1 năm trước cách đây
mục cha
commit
e0c0f197d9
1 tập tin đã thay đổi với 7 bổ sung1 xóa
  1. 7 1
      app/Jobs/RechargeJob.php

+ 7 - 1
app/Jobs/RechargeJob.php

@@ -65,10 +65,16 @@ class RechargeJob implements ShouldQueue
         $data = DB::table('mt_pay_order')->where('id',$this->msgid)->first();
         if(empty($data)){return true;}
 
+        $args = json_decode($data->args,true);
+        $gold = isset($args['gold']) ? $args['gold'] : 0;
+        if($gold <= 0){
+            return true;
+        }
+
         DB::beginTransaction();
 
         $Alltools = new Alltools;
-        $result = $Alltools->shouyi($data->to_user_id,$data->money,'user_match_video_log',$this->msgid);
+        $result = $Alltools->recharge($data->user_id,$gold,'pay_order',$this->msgid);
         if($result !== true){
             DB::rollBack();
             return false;