diff --git a/app/common/repositories/system/merchant/MerchantCategoryRepository.php b/app/common/repositories/system/merchant/MerchantCategoryRepository.php index 167eaf42..27ad23bc 100644 --- a/app/common/repositories/system/merchant/MerchantCategoryRepository.php +++ b/app/common/repositories/system/merchant/MerchantCategoryRepository.php @@ -85,6 +85,7 @@ class MerchantCategoryRepository extends BaseRepository Elm::input('category_name', '分类名称')->required(), Elm::number('commission_rate', '手续费(%)', 0)->required()->max(100)->precision(2), Elm::frameImage('background', '背景图', '/' . config('admin.admin_prefix') . '/setting/uploadPicture?field=background&type=1')->width('896px')->height('480px')->props(['footer' => false])->modal(['modal' => false, 'custom-class' => 'suibian-modal']), + Elm::frameImage('cover', '主图', '/' . config('admin.admin_prefix') . '/setting/uploadPicture?field=background&type=1')->width('896px')->height('480px')->props(['footer' => false])->modal(['modal' => false, 'custom-class' => 'suibian-modal']), Elm::textarea('description', '简介')->required(), ]); diff --git a/app/controller/api/Common.php b/app/controller/api/Common.php index c2c22e88..9d81edd8 100644 --- a/app/controller/api/Common.php +++ b/app/controller/api/Common.php @@ -501,7 +501,7 @@ class Common extends BaseController ->where('m.status',1) ->where('m.street_id',$street_code) ->join('merchant_category c','m.category_id=c.merchant_category_id') - ->field('m.mer_id,category_id,category_name,c.background,c.description')->select(); + ->field('m.mer_id,category_id,category_name,c.background,c.cover,c.description')->select(); return app('json')->success($find??[]); } }