Commit 431bf16e authored by 侯贺政's avatar 侯贺政

启用关闭的功能修改

Signed-off-by: 侯贺政's avatarhouhezheng <houhezheng@romens.cn>
parent 4b0437b0
......@@ -146,7 +146,7 @@ class GoodsDetailSettingController extends BaseController
}
$_model->attributes = $params;
if (!$_model->validate()) {
if (!$_model->save()) {
Yii::$app->response->statusCode = 422;
return $_model->errors;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment