作者 李美松

v6优化程序 AICC用户ID固定 env

... ... @@ -33,7 +33,7 @@ class ProjectAssociationController extends BaseController
}
$status = (bool)request()->post('status', 1); # 1 - 正常, 0 - 禁用
$user_id = (int)request()->post('user_id', 0);
$user_id = (int)env('AICC_WECHAT_USER_ID') ?? 0;
if (empty($user_id) && $status) {
$this->fail('请选择要绑定的AICC用户!', Code::USER_PARAMS_ERROE);
}
... ...