|
|
@@ -2,45 +2,18 @@
|
|
|
|
|
|
namespace admin\controllers;
|
|
|
|
|
|
-use biz\user\services\UserOldDataService;
|
|
|
+use biz\admin\services\AdminService;
|
|
|
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 $enableCsrfValidation = false;
|
|
|
+
|
|
|
+ //客户列表 shish 2019.11.30
|
|
|
public function actionGetList()
|
|
|
{
|
|
|
$get = Yii::$app->request->get();
|
|
|
@@ -70,7 +43,7 @@ class UserController extends BaseController
|
|
|
$list = UserService::getUserList($where);
|
|
|
util::success($list);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
//获取客户基本和资产信息 shish 2019.11.30
|
|
|
public function actionGetInfo()
|
|
|
{
|
|
|
@@ -81,7 +54,7 @@ class UserController extends BaseController
|
|
|
}
|
|
|
util::success($info);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
//获取客户基本、资产和订单完整信息 2019.11.30
|
|
|
public function actionGetFullInfo()
|
|
|
{
|
|
|
@@ -92,5 +65,20 @@ class UserController extends BaseController
|
|
|
}
|
|
|
util::success($info);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
+ //添加客户,申请会员时会自动同步资产 shish 2019.11.30
|
|
|
+ public function actionAdd()
|
|
|
+ {
|
|
|
+ $post = Yii::$app->request->post();
|
|
|
+ if ($post['mobile'] != $post['confirmMobile']) {
|
|
|
+ util::fail('二次输入手机号不一样');
|
|
|
+ }
|
|
|
+ $confirmPassword = isset($post['confirmPassword']) ? $post['confirmPassword'] : '';
|
|
|
+ $verify = AdminService::verifyConfirmPassword($this->adminId, $confirmPassword);
|
|
|
+ if ($verify == false) {
|
|
|
+ util::fail('密码错误');
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
}
|