Skip to content

Commit b6f8563

Browse files
新建的分类404的问题解决
1 parent 3e0a997 commit b6f8563

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

services/category/CategoryMysqldb.php

+1
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ public function save($one, $originUrlKey = 'catalog/category/index')
241241
}
242242
$one = $this->serializeSaveData($one);
243243
$saveStatus = Yii::$service->helper->ar->save($model, $one);
244+
$primaryVal = $model->id;
244245
$originUrl = $originUrlKey.'?'.$this->getPrimaryKey() .'='. $primaryVal;
245246
$originUrlKey = isset($one['url_key']) ? $one['url_key'] : '';
246247
$defaultLangTitle = Yii::$service->fecshoplang->getDefaultLangAttrVal($one['name'], 'name');

0 commit comments

Comments
 (0)