|
|
@@ -78,6 +78,20 @@ class GameImproveRtpGlobal extends BaseController
|
|
|
$info->custom_time_start = !empty($custom_time_start) ? strtotime($custom_time_start) : 0;
|
|
|
$info->custom_time_end = !empty($custom_time_end) ? strtotime($custom_time_end) : 0;
|
|
|
|
|
|
+
|
|
|
+ if($info->evaluation_period != 5) {
|
|
|
+ $info->round_status = 1;
|
|
|
+ $info->open_status_time = time();
|
|
|
+ }else {
|
|
|
+ if(time() >= $info->custom_time_start) {
|
|
|
+ $info->round_status = 1;
|
|
|
+ }
|
|
|
+ if(time() >= $info->custom_time_end) {
|
|
|
+ $info->round_status = 2;
|
|
|
+ }
|
|
|
+ $info->open_status_time = $info->custom_time_start;
|
|
|
+ }
|
|
|
+
|
|
|
$info->save();
|
|
|
|
|
|
return json_success([],'操作成功');
|