| 1234567891011121314151617181920212223242526272829 |
- <?php
- namespace pt\controllers;
- use bizHd\merchant\services\ShopService;
- use common\components\stringUtil;
- use common\components\util;
- use Yii;
- class ShopController extends BaseController
- {
- //门店列表 ssh 20210730
- public function actionList()
- {
- $where = [];
- $name = Yii::$app->request->get('name', '');
- if (!empty($name)) {
- if (stringUtil::isLetter($name)) {
- $where['py'] = ['like', $name];
- } else {
- $where['merchantName'] = ['like', $name];
- }
- }
- $list = ShopService::getShopList($where);
- util::success($list);
- }
- }
|