Merge branch 'dev' of http://git.excellentkk.cn/mkm/shop-php into dev
This commit is contained in:
commit
3e1d4ace81
@ -28,6 +28,17 @@ class StoreMicro extends BaseController
|
|||||||
return app('json')->success($store_product);
|
return app('json')->success($store_product);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function ProductDetails($id){
|
||||||
|
$find=Db::name('store_product')->where('product_id',$id)
|
||||||
|
->withAttr('attr_value',function ($value,$data){
|
||||||
|
return Db::name('store_product_attr_value')->where('product_id',$data['product_id'])->select();
|
||||||
|
})
|
||||||
|
->find();
|
||||||
|
return app('json')->success(['list'=>$find]);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public function eadtProduct(){
|
public function eadtProduct(){
|
||||||
$product_id = $this->request->param('id', 0);
|
$product_id = $this->request->param('id', 0);
|
||||||
if ($product_id==0) return app('json')->fail('商品id不能为空');
|
if ($product_id==0) return app('json')->fail('商品id不能为空');
|
||||||
|
@ -26,6 +26,7 @@ Route::group('api/', function () {
|
|||||||
|
|
||||||
Route::group('micro', function () {
|
Route::group('micro', function () {
|
||||||
Route::get('seach_bar_code', '/seach_bar_code');
|
Route::get('seach_bar_code', '/seach_bar_code');
|
||||||
|
Route::get('product_details', '/ProductDetails');
|
||||||
Route::post('eadt_product', '/eadtProduct');
|
Route::post('eadt_product', '/eadtProduct');
|
||||||
})->prefix('api.store.product.StoreMicro');
|
})->prefix('api.store.product.StoreMicro');
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user