|
@@ -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;
|