|
|
@@ -616,10 +616,9 @@ class ProductController extends BaseController
|
|
|
$post = Yii::$app->request->post();
|
|
|
|
|
|
$shop = $this->shop;
|
|
|
- $join = $shop->join ?? 0;
|
|
|
$default = $shop->default ?? 0;
|
|
|
- if ($join == 0 && $default == 0) {
|
|
|
- util::fail('请在首店操作');
|
|
|
+ if ($default == 0) {
|
|
|
+ util::fail('请在首店添加花材,分店只能修改花材');
|
|
|
}
|
|
|
|
|
|
$shopAdmin = $this->shopAdmin;
|