|
@@ -594,6 +594,22 @@ class Index extends Controller
|
|
|
return $this->successResponse($res);
|
|
return $this->successResponse($res);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ public function clearGameData()
|
|
|
|
|
+ {
|
|
|
|
|
+ // 更新用户参与状态
|
|
|
|
|
+ Db::table('awards_user_info')->where('uid', Safe::$user['uid'])->update([
|
|
|
|
|
+ 'is_share' => 0,
|
|
|
|
|
+ 'share_at' => 0,
|
|
|
|
|
+ 'count' => 1,
|
|
|
|
|
+ ]);
|
|
|
|
|
+
|
|
|
|
|
+ Db::table('awards_user_task_log')->where('uid', Safe::$user['uid'])->delete();
|
|
|
|
|
+
|
|
|
|
|
+ Db::table('awards_order')->where('uid', Safe::$user['uid'])->delete();
|
|
|
|
|
+
|
|
|
|
|
+ return $this->successResponse(null, '清除成功');
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 品牌任务关注接口
|
|
* 品牌任务关注接口
|
|
|
* @throws FuncNotFoundException
|
|
* @throws FuncNotFoundException
|