标签代码的迁移
This commit is contained in:
parent
d71aaa72a7
commit
3f2b5b738d
@ -519,12 +519,8 @@ class ProductRepository extends BaseRepository
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$wholesalePrices = array_column($data['attrValue'], 'wholesale_price');
|
||||||
$minValues = array_map(function ($item) {
|
$minPriceOtPrice = min($wholesalePrices);
|
||||||
return min($item['price'], $item['ot_price']);
|
|
||||||
}, $data['attrValue']);
|
|
||||||
|
|
||||||
$minPriceOtPrice = min($minValues);
|
|
||||||
|
|
||||||
$result = [
|
$result = [
|
||||||
'store_name' => $data['store_name'],
|
'store_name' => $data['store_name'],
|
||||||
|
@ -23,6 +23,7 @@ use app\common\repositories\delivery\DeliveryOrderRepository;
|
|||||||
use app\common\repositories\store\product\ProductAssistSetRepository;
|
use app\common\repositories\store\product\ProductAssistSetRepository;
|
||||||
use app\common\repositories\store\product\ProductGroupBuyingRepository;
|
use app\common\repositories\store\product\ProductGroupBuyingRepository;
|
||||||
use app\common\repositories\store\product\ProductGroupRepository;
|
use app\common\repositories\store\product\ProductGroupRepository;
|
||||||
|
use app\common\repositories\store\product\ProductLabelRepository;
|
||||||
use app\common\repositories\store\product\ProductPresellRepository;
|
use app\common\repositories\store\product\ProductPresellRepository;
|
||||||
use app\common\repositories\store\product\ProductRepository;
|
use app\common\repositories\store\product\ProductRepository;
|
||||||
use app\common\repositories\store\shipping\ExpressRepository;
|
use app\common\repositories\store\shipping\ExpressRepository;
|
||||||
@ -739,4 +740,18 @@ class Common extends BaseController
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 商品标签
|
||||||
|
*/
|
||||||
|
public function label_lst(ProductLabelRepository $repository)
|
||||||
|
{
|
||||||
|
[$page, $limit] = $this->getPage();
|
||||||
|
$where = $this->request->params(['name', 'type', 'status']);
|
||||||
|
$data = $repository->getList($where, $page, $limit);
|
||||||
|
return app('json')->success($data);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -24,6 +24,7 @@ Route::group('api/', function () {
|
|||||||
Route::any('ceshi', 'api.Demo/ceshi');
|
Route::any('ceshi', 'api.Demo/ceshi');
|
||||||
Route::any('promote_writing', 'api.Common/promote_writing');
|
Route::any('promote_writing', 'api.Common/promote_writing');
|
||||||
Route::any('applet', 'api.Common/applet');
|
Route::any('applet', 'api.Common/applet');
|
||||||
|
Route::get('label_lst', 'api.Common/label_lst');
|
||||||
Route::any('promote_writing', 'api.Common/promoteWriting');
|
Route::any('promote_writing', 'api.Common/promoteWriting');
|
||||||
Route::get('business/agree', 'api.Auth/businessAgree');
|
Route::get('business/agree', 'api.Auth/businessAgree');
|
||||||
Route::any('system_group_value', 'api.Common/system_group_value');
|
Route::any('system_group_value', 'api.Common/system_group_value');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user