|
|
@@ -75,8 +75,10 @@ class ConfigPeriodForm extends Model
|
|
|
if(!Config::updateAll(['VALUE'=>$this->closeTime, 'UPDATED_AT'=>Date::nowTime()], "CONFIG_NAME='closeTime'")){
|
|
|
throw new Exception('封期时间更新失败');
|
|
|
}
|
|
|
+ // 异步重新生成业绩期先注释掉
|
|
|
// 异步处理添加任务
|
|
|
- $taskKey = \Yii::$app->swooleAsyncTimer->asyncHandle('config/update-period', \Yii::$app->request->post());
|
|
|
+ //$taskKey = \Yii::$app->swooleAsyncTimer->asyncHandle('config/update-period', \Yii::$app->request->post());
|
|
|
+ $taskKey = true;
|
|
|
if($taskKey === false){
|
|
|
throw new Exception('请求异步服务器失败');
|
|
|
}
|