|
@@ -62,7 +62,7 @@ class RechargeJob implements ShouldQueue
|
|
|
public function goaaa(){
|
|
|
|
|
|
//
|
|
|
- $data = DB::table('mt_pay_order')->where('id',$this->msgid)->first();
|
|
|
+ $data = DB::table('mt_pay_order')->where('id',$this->msgid)->where('plantask_status',0)->first();
|
|
|
if(empty($data)){return true;}
|
|
|
|
|
|
$args = json_decode($data->args,true);
|
|
@@ -80,6 +80,16 @@ class RechargeJob implements ShouldQueue
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
+ //
|
|
|
+ $update = [
|
|
|
+ 'plantask_status' => 1,
|
|
|
+ ];
|
|
|
+ $rs_update = DB::table('mt_pay_order')->where('id',$this->msgid)->update($update);
|
|
|
+ if(!$rs_update){
|
|
|
+ Db::rollBack();
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
DB::commit();
|
|
|
return true;
|
|
|
}
|