feature/main20240421
郭嘉 7 months ago
parent 129f4b3105
commit d74d87d38f
  1. 2
      app/common/model/Style.php
  2. 2
      app/store/controller/Merchant.php

@ -37,7 +37,7 @@ class Style extends BaseModel
public static function detail(int $styleId, int $storeId) public static function detail(int $styleId, int $storeId)
{ {
$where = [ $where = [
'style_id' => $styleId, //'style_id' => $styleId,
'store_id' => $storeId 'store_id' => $storeId
]; ];
return static::get($where, []); return static::get($where, []);

@ -139,7 +139,7 @@ class Merchant extends Controller
return $this->renderSuccess('操作成功'); return $this->renderSuccess('操作成功');
} }
} else { } else {
$data['style_id'] = 1; $data['style_id'] = $detail['style_id'];
if ($detail->edit($data)) { if ($detail->edit($data)) {
return $this->renderSuccess('操作成功'); return $this->renderSuccess('操作成功');
} }

Loading…
Cancel
Save