CommonController.php 528 B

123456789101112131415161718192021
  1. <?php
  2. namespace backend\controllers;
  3. use common\services\xhUserService;
  4. use common\components\util;
  5. use Yii;
  6. use yii\web\Controller;
  7. class CommonController extends BackendController
  8. {
  9. /**
  10. * 模糊查询手机号
  11. */
  12. public function actionGetUserByMobile()
  13. {
  14. $get = Yii::$app->request->get();
  15. $mobile = isset($get['mobile']) ? $get['mobile'] : 0;
  16. $result = xhUserService::searchByMobile($mobile,$this->merchantId);
  17. util::successInfo('success','A0001',$result);
  18. }
  19. }