|
@@ -81,7 +81,10 @@ class GiftJob implements ShouldQueue
|
|
|
public function goaaa(){
|
|
|
|
|
|
//
|
|
|
- $data = DB::table('hx_gift_user_party')->where('id',$this->msgid)->first();
|
|
|
+ $data = DB::table('hx_gift_user_party')->where('id',$this->msgid)->where('new_task_status',0)->first();
|
|
|
+ if(empty($data)){
|
|
|
+ return true;
|
|
|
+ }
|
|
|
|
|
|
DB::beginTransaction();
|
|
|
|
|
@@ -117,6 +120,14 @@ class GiftJob implements ShouldQueue
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ $update_data = ['new_task_status'=>1];
|
|
|
+ $rs_update = DB::table('hx_gift_user_party')->where('id',$this->msgid)->update($update_data);
|
|
|
+
|
|
|
+ if(!$rs_update){
|
|
|
+ Db::rollBack();
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
Db::commit();
|
|
|
return true;
|
|
|
}
|