| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <?php
- namespace admin\controllers;
- use biz\user\services\UserOldDataService;
- use biz\user\services\UserService;
- use common\models\xhAdmin;
- use common\models\xhStudent;
- use Yii;
- use common\models\xhUserAlipay;
- use common\models\xhUserTag;
- use common\models\xhTrainCourse;
- use common\models\xhUser;
- use common\models\xhUserAsset;
- use common\models\xhTrainUserCourse;
- use common\services\xhUserAlipayService;
- use common\services\xhUserIntegralService;
- use common\services\xhTrainClassService;
- use common\services\xhOrderService;
- use common\services\xhPayToolService;
- use common\services\xhRechargeService;
- use common\services\xhMerchantExtendService;
- use common\services\xhMerchantAssetService;
- use common\services\xhUserAssetService;
- use common\services\xhCouponService;
- use common\services\xhUserTagService;
- use common\services\xhUserTagClassService;
- use common\services\xhAdminService;
- use common\services\xhMerchantService;
- use common\components\stringUtil;
- use common\components\weixinUtil;
- use common\components\configDict;
- use common\components\util;
- use common\components\page;
- use common\services\xhUserService;
- use common\services\xhUserByDayService;
- use common\services\xhUserUniteService;
- use common\services\xhMerchantCapitalService;
- use common\services\xhTMessageService;
- class UserController extends BaseController
- {
-
- public function actionGetList()
- {
- $get = Yii::$app->request->get();
- //组建where
- $type = isset($get['type']) ? $get['type'] : 0;
- $search = isset($get['search']) ? $get['search'] : '';
- $where = ['merchantId' => $this->merchantId];
- switch ($type) {
- case 1:
- //粉丝
- $where['subscribe'] = 1;
- break;
- case 2:
- //会员
- $where['isMember'] = 1;
- break;
- default:
- }
- if (!empty($search)) {
- if (stringUtil::isMobieNumber($search)) {
- $where['mobile'] = $search;
- } else {
- $where['userName'] = ['like', $search];
- }
- }
- $list = UserService::getUserList($where);
- util::success($list);
- }
-
- }
|