feature/main20240421
郭嘉 6 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)
{
$where = [
'style_id' => $styleId,
//'style_id' => $styleId,
'store_id' => $storeId
];
return static::get($where, []);

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

Loading…
Cancel
Save