multi-store/app/api/controller/product/ProductController.php
2024-06-14 17:44:59 +08:00

27 lines
559 B
PHP

<?php
namespace app\api\controller\product;
use app\api\controller\BaseApiController;
use app\api\lists\product\ProductLists;
class ProductController extends BaseApiController{
public $notNeedLogin = ['lists'];
/**
* 商品列表
*/
public function lists(){
return $this->dataLists(new ProductLists(),1);
}
/**
* 商品列表
*/
public function mer_list(){
$this->request->__set('store_id',$this->request->userInfo['store_id']??0);
return $this->dataLists(new ProductLists());
}
}