|
|
@@ -10,7 +10,9 @@ namespace backendApi\modules\v1\controllers;
|
|
|
|
|
|
use backendApi\modules\v1\components\UserAuth;
|
|
|
use backendApi\modules\v1\models\Admin;
|
|
|
+use backendApi\modules\v1\models\exportForms\BaUserExportForm;
|
|
|
use backendApi\modules\v1\models\exportForms\UserExportForm;
|
|
|
+use backendApi\modules\v1\models\lists\shop\BaUserList;
|
|
|
use backendApi\modules\v1\models\lists\user\BindList;
|
|
|
use backendApi\modules\v1\models\lists\user\DecLevelList;
|
|
|
use backendApi\modules\v1\models\lists\user\GroupList;
|
|
|
@@ -29,9 +31,11 @@ use common\helpers\user\Balance;
|
|
|
use common\helpers\user\Cash;
|
|
|
use common\helpers\user\Info;
|
|
|
use common\helpers\user\Status;
|
|
|
+use common\models\BaUser;
|
|
|
use common\models\CompanyBank;
|
|
|
use common\models\FlowBonus;
|
|
|
use common\models\forms\AdminAddUserForm;
|
|
|
+use common\models\forms\BaUserBasicForm;
|
|
|
use common\models\forms\ChangeShowEmpLvForm;
|
|
|
use common\models\forms\CloseDecForm;
|
|
|
use common\models\forms\CloseLoginForm;
|
|
|
@@ -77,6 +81,7 @@ use common\models\User;
|
|
|
use common\models\UserInfo;
|
|
|
use common\models\UserTeamwork;
|
|
|
use yii\base\Exception;
|
|
|
+use yii\web\HttpException;
|
|
|
use yii\web\UploadedFile;
|
|
|
|
|
|
class UserController extends BaseController
|
|
|
@@ -94,7 +99,7 @@ class UserController extends BaseController
|
|
|
* 会员列表
|
|
|
* @return mixed
|
|
|
* @throws Exception
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionIndex()
|
|
|
{
|
|
|
@@ -157,7 +162,7 @@ class UserController extends BaseController
|
|
|
* 导出会员列表
|
|
|
* @return mixed
|
|
|
* @throws \yii\db\Exception
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionIndexExport()
|
|
|
{
|
|
|
@@ -214,7 +219,7 @@ class UserController extends BaseController
|
|
|
* 空单会员列表
|
|
|
* @return mixed
|
|
|
* @throws Exception
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionEmptyList()
|
|
|
{
|
|
|
@@ -276,7 +281,7 @@ class UserController extends BaseController
|
|
|
* 点位绑定
|
|
|
* @return mixed
|
|
|
* @throws Exception
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionBind()
|
|
|
{
|
|
|
@@ -301,7 +306,7 @@ class UserController extends BaseController
|
|
|
* 点位绑定导出
|
|
|
* @return mixed
|
|
|
* @throws \yii\db\Exception
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionBindExport()
|
|
|
{
|
|
|
@@ -326,7 +331,7 @@ class UserController extends BaseController
|
|
|
/**
|
|
|
* 添加点位绑定
|
|
|
* @return mixed
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionBindAdd()
|
|
|
{
|
|
|
@@ -341,7 +346,7 @@ class UserController extends BaseController
|
|
|
* 编辑点位绑定
|
|
|
* @return mixed
|
|
|
* @throws Exception
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionBindEdit()
|
|
|
{
|
|
|
@@ -365,7 +370,7 @@ class UserController extends BaseController
|
|
|
* 删除点位绑定
|
|
|
* @return mixed
|
|
|
* @throws \yii\db\Exception
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionBindDelete()
|
|
|
{
|
|
|
@@ -382,7 +387,7 @@ class UserController extends BaseController
|
|
|
* 生成点位合作的用户名
|
|
|
* @return mixed
|
|
|
* @throws \yii\base\InvalidConfigException
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionGenerateUserName()
|
|
|
{
|
|
|
@@ -397,7 +402,7 @@ class UserController extends BaseController
|
|
|
* 点位合作
|
|
|
* @return mixed
|
|
|
* @throws Exception
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionTeamwork()
|
|
|
{
|
|
|
@@ -425,7 +430,7 @@ class UserController extends BaseController
|
|
|
* 点位合作导出
|
|
|
* @return mixed
|
|
|
* @throws \yii\db\Exception
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionTeamworkExport()
|
|
|
{
|
|
|
@@ -453,7 +458,7 @@ class UserController extends BaseController
|
|
|
/**
|
|
|
* 添加点位合作
|
|
|
* @return mixed
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionTeamworkAdd()
|
|
|
{
|
|
|
@@ -473,7 +478,7 @@ class UserController extends BaseController
|
|
|
* 编辑点位合作
|
|
|
* @return mixed
|
|
|
* @throws Exception
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionTeamworkEdit()
|
|
|
{
|
|
|
@@ -504,7 +509,7 @@ class UserController extends BaseController
|
|
|
* 删除方法
|
|
|
* @return mixed
|
|
|
* @throws \yii\db\Exception
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionTeamworkDelete()
|
|
|
{
|
|
|
@@ -520,7 +525,7 @@ class UserController extends BaseController
|
|
|
* 会员体系
|
|
|
* @return mixed
|
|
|
* @throws Exception
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionSystem()
|
|
|
{
|
|
|
@@ -547,7 +552,7 @@ class UserController extends BaseController
|
|
|
* 体系管理导出
|
|
|
* @return mixed
|
|
|
* @throws \yii\db\Exception
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionSystemExport()
|
|
|
{
|
|
|
@@ -577,7 +582,7 @@ class UserController extends BaseController
|
|
|
* @throws \yii\base\InvalidConfigException
|
|
|
* @throws \yii\db\Exception
|
|
|
* @throws \yii\httpclient\Exception
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionSystemAdd()
|
|
|
{
|
|
|
@@ -598,7 +603,7 @@ class UserController extends BaseController
|
|
|
* @return mixed
|
|
|
* @throws \yii\base\InvalidConfigException
|
|
|
* @throws \yii\httpclient\Exception
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionSystemEdit()
|
|
|
{
|
|
|
@@ -617,7 +622,7 @@ class UserController extends BaseController
|
|
|
/**
|
|
|
* 恢复体系
|
|
|
* @return mixed
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionSystemRenew()
|
|
|
{
|
|
|
@@ -632,7 +637,7 @@ class UserController extends BaseController
|
|
|
* 删除方法
|
|
|
* @return mixed
|
|
|
* @throws \yii\db\Exception
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionSystemDelete()
|
|
|
{
|
|
|
@@ -649,7 +654,7 @@ class UserController extends BaseController
|
|
|
* 团队领导人列表
|
|
|
* @return mixed
|
|
|
* @throws Exception
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionGroup()
|
|
|
{
|
|
|
@@ -668,7 +673,7 @@ class UserController extends BaseController
|
|
|
* 团队领导人列表导出
|
|
|
* @return mixed
|
|
|
* @throws \yii\db\Exception
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionGroupExport()
|
|
|
{
|
|
|
@@ -688,7 +693,7 @@ class UserController extends BaseController
|
|
|
* 会员移网记录
|
|
|
* @return mixed
|
|
|
* @throws Exception
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionMove()
|
|
|
{
|
|
|
@@ -723,7 +728,7 @@ class UserController extends BaseController
|
|
|
* 移网管理导出
|
|
|
* @return mixed
|
|
|
* @throws \yii\db\Exception
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionMoveExport()
|
|
|
{
|
|
|
@@ -757,7 +762,7 @@ class UserController extends BaseController
|
|
|
* @return mixed
|
|
|
* @throws \yii\base\InvalidConfigException
|
|
|
* @throws \yii\httpclient\Exception
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionMoveAdd()
|
|
|
{
|
|
|
@@ -772,7 +777,7 @@ class UserController extends BaseController
|
|
|
/**
|
|
|
* 获取全部移网类型
|
|
|
* @return mixed
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionMoveNetType()
|
|
|
{
|
|
|
@@ -783,7 +788,7 @@ class UserController extends BaseController
|
|
|
* 获取移网数据
|
|
|
* @return mixed
|
|
|
* @throws Exception
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionMoveGet()
|
|
|
{
|
|
|
@@ -801,7 +806,7 @@ class UserController extends BaseController
|
|
|
* 修改移网数据
|
|
|
* @return mixed
|
|
|
* @throws \yii\db\Exception
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionMoveEdit()
|
|
|
{
|
|
|
@@ -819,7 +824,7 @@ class UserController extends BaseController
|
|
|
* 审核通过移网数据(实际的移网动作在这里,异步操作)
|
|
|
* @return mixed
|
|
|
* @throws \yii\db\Exception
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionMovePass()
|
|
|
{
|
|
|
@@ -839,7 +844,7 @@ class UserController extends BaseController
|
|
|
* @throws \yii\base\InvalidConfigException
|
|
|
* @throws \yii\db\Exception
|
|
|
* @throws \yii\httpclient\Exception
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionMoveAudit()
|
|
|
{
|
|
|
@@ -856,7 +861,7 @@ class UserController extends BaseController
|
|
|
* 删除移网数据
|
|
|
* @return mixed
|
|
|
* @throws \yii\db\Exception
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionMoveDelete()
|
|
|
{
|
|
|
@@ -872,7 +877,7 @@ class UserController extends BaseController
|
|
|
/**
|
|
|
* 会员的基础用户信息
|
|
|
* @return mixed
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionFullInfo()
|
|
|
{
|
|
|
@@ -897,7 +902,7 @@ class UserController extends BaseController
|
|
|
/**
|
|
|
* 会员的基本信息编号名称
|
|
|
* @return mixed
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionBaseInfo()
|
|
|
{
|
|
|
@@ -909,7 +914,7 @@ class UserController extends BaseController
|
|
|
/**
|
|
|
* 点位合作主点位分成比例
|
|
|
* @return mixed
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionMainDivide()
|
|
|
{
|
|
|
@@ -924,7 +929,7 @@ class UserController extends BaseController
|
|
|
/**
|
|
|
* 获取子公司
|
|
|
* @return mixed
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionGetSubCom()
|
|
|
{
|
|
|
@@ -936,7 +941,7 @@ class UserController extends BaseController
|
|
|
/**
|
|
|
* 判断是否在同一推荐网络
|
|
|
* @return mixed
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionChkRelation()
|
|
|
{
|
|
|
@@ -956,7 +961,7 @@ class UserController extends BaseController
|
|
|
/**
|
|
|
* 获取当前期数
|
|
|
* @return mixed
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionGetPeriodNum()
|
|
|
{
|
|
|
@@ -976,7 +981,7 @@ class UserController extends BaseController
|
|
|
/**
|
|
|
* 关停列表
|
|
|
* @return mixed
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
// public function actionClose()
|
|
|
// {
|
|
|
@@ -1009,7 +1014,7 @@ class UserController extends BaseController
|
|
|
/**
|
|
|
* 申请关停或停发
|
|
|
* @return mixed
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
// public function actionCloseAdd()
|
|
|
// {
|
|
|
@@ -1040,7 +1045,7 @@ class UserController extends BaseController
|
|
|
* 审核关停或停发
|
|
|
* @return mixed
|
|
|
* @throws \yii\db\Exception
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
// public function actionCloseAudit()
|
|
|
// {
|
|
|
@@ -1066,7 +1071,7 @@ class UserController extends BaseController
|
|
|
/**
|
|
|
* 添加会员
|
|
|
* @return mixed
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionUserAdd()
|
|
|
{
|
|
|
@@ -1090,7 +1095,7 @@ class UserController extends BaseController
|
|
|
/**
|
|
|
* 分页导入excel文件到待导入数据的表中
|
|
|
* @return mixed
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionImportUsersToExcelTable()
|
|
|
{
|
|
|
@@ -1132,7 +1137,7 @@ class UserController extends BaseController
|
|
|
/**
|
|
|
* 个人资料获取
|
|
|
* @return mixed
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionProfileGet() {
|
|
|
$id = Yii::$app->request->get('id');
|
|
|
@@ -1181,7 +1186,7 @@ class UserController extends BaseController
|
|
|
/**
|
|
|
* @return mixed
|
|
|
* @throws \yii\db\Exception
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionIsModifyPasswordStatus() {
|
|
|
$form = new UserBasicForm();
|
|
|
@@ -1196,7 +1201,7 @@ class UserController extends BaseController
|
|
|
/**
|
|
|
* 分页把待导入表中的数据导入到真正的数据中
|
|
|
* @return mixed
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionImportUsersAdd()
|
|
|
{
|
|
|
@@ -1226,7 +1231,7 @@ class UserController extends BaseController
|
|
|
/**
|
|
|
* 判断是否满足删除条件
|
|
|
* @return mixed
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionChkDelUser()
|
|
|
{
|
|
|
@@ -1276,7 +1281,7 @@ class UserController extends BaseController
|
|
|
* 删除空单会员
|
|
|
* @return mixed
|
|
|
* @throws Exception
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionUserDel()
|
|
|
{
|
|
|
@@ -1294,7 +1299,7 @@ class UserController extends BaseController
|
|
|
/**
|
|
|
* 复销列表
|
|
|
* @return mixed
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionReConsumeList()
|
|
|
{
|
|
|
@@ -1329,7 +1334,7 @@ class UserController extends BaseController
|
|
|
* 'CREATED_AT' => '>=,2018-11-10,date'
|
|
|
* ]
|
|
|
* @return mixed
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionFilterUser()
|
|
|
{
|
|
|
@@ -1405,7 +1410,7 @@ class UserController extends BaseController
|
|
|
* 会员级别变动记录
|
|
|
* @return mixed
|
|
|
* @throws \yii\base\Exception
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionDecLevelList()
|
|
|
{
|
|
|
@@ -1424,7 +1429,7 @@ class UserController extends BaseController
|
|
|
/**
|
|
|
* 调整会员级别报单级别
|
|
|
* @return mixed
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionChangeUserDecLevel()
|
|
|
{
|
|
|
@@ -1441,7 +1446,7 @@ class UserController extends BaseController
|
|
|
/**
|
|
|
* 调整会员级别报单级别
|
|
|
* @return mixed
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionChangeUserDecRole()
|
|
|
{
|
|
|
@@ -1458,7 +1463,7 @@ class UserController extends BaseController
|
|
|
/**
|
|
|
* 修改会员前台显示聘级
|
|
|
* @return mixed
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionChangeShowEmpLevel()
|
|
|
{
|
|
|
@@ -1476,7 +1481,7 @@ class UserController extends BaseController
|
|
|
* 注册信息管理
|
|
|
* @return mixed
|
|
|
* @throws Exception
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionRegInfo()
|
|
|
{
|
|
|
@@ -1502,7 +1507,7 @@ class UserController extends BaseController
|
|
|
/**
|
|
|
* 注册信息管理中提交修改注册信息
|
|
|
* @return mixed
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionRegInfoEdit()
|
|
|
{
|
|
|
@@ -1520,7 +1525,7 @@ class UserController extends BaseController
|
|
|
* 会员注册信息审核
|
|
|
* @return mixed
|
|
|
* @throws Exception
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionRegInfoAudit()
|
|
|
{
|
|
|
@@ -1552,7 +1557,7 @@ class UserController extends BaseController
|
|
|
/**
|
|
|
* 会员注册信息添加
|
|
|
* @return mixed
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionRegInfoAuditAdd()
|
|
|
{
|
|
|
@@ -1567,7 +1572,7 @@ class UserController extends BaseController
|
|
|
/**
|
|
|
* 会员注册信息添加获取
|
|
|
* @return mixed
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionRegInfoAuditAddOpt()
|
|
|
{
|
|
|
@@ -1579,7 +1584,7 @@ class UserController extends BaseController
|
|
|
* 会员注册信息获取
|
|
|
* @return mixed
|
|
|
* @throws Exception
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionRegInfoAuditGet()
|
|
|
{
|
|
|
@@ -1601,7 +1606,7 @@ class UserController extends BaseController
|
|
|
* 会员注册信息修改
|
|
|
* @return mixed
|
|
|
* @throws \yii\db\Exception
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionRegInfoAuditEdit()
|
|
|
{
|
|
|
@@ -1619,7 +1624,7 @@ class UserController extends BaseController
|
|
|
* 会员注册信息审核
|
|
|
* @return mixed
|
|
|
* @throws \yii\db\Exception
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionRegInfoAuditAudit()
|
|
|
{
|
|
|
@@ -1636,7 +1641,7 @@ class UserController extends BaseController
|
|
|
/**
|
|
|
* 分页导入excel文件到待导入数据的表中
|
|
|
* @return mixed
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionImportRegInfoToExcelTable()
|
|
|
{
|
|
|
@@ -1669,7 +1674,7 @@ class UserController extends BaseController
|
|
|
* 分页把待导入表中的数据导入到真正的数据中
|
|
|
* @return mixed
|
|
|
* @throws Exception
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionImportRegInfo()
|
|
|
{
|
|
|
@@ -1695,7 +1700,7 @@ class UserController extends BaseController
|
|
|
* 会员注册信息删除
|
|
|
* @return mixed
|
|
|
* @throws \yii\db\Exception
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionRegInfoAuditDelete()
|
|
|
{
|
|
|
@@ -1709,7 +1714,7 @@ class UserController extends BaseController
|
|
|
/**
|
|
|
* 禁止登录
|
|
|
* @return mixed
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionCloseLogin()
|
|
|
{
|
|
|
@@ -1727,7 +1732,7 @@ class UserController extends BaseController
|
|
|
/**
|
|
|
* 禁止登陆类型获取
|
|
|
* @return mixed
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionCloseLoginGet()
|
|
|
{
|
|
|
@@ -1737,7 +1742,7 @@ class UserController extends BaseController
|
|
|
/**
|
|
|
* 关闭地区登录
|
|
|
* @return mixed
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionCloseAreaLogin()
|
|
|
{
|
|
|
@@ -1758,7 +1763,7 @@ class UserController extends BaseController
|
|
|
/**
|
|
|
* 批量登录管理
|
|
|
* @return mixed
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionBatchCloseLogin()
|
|
|
{
|
|
|
@@ -1782,7 +1787,7 @@ class UserController extends BaseController
|
|
|
/**
|
|
|
* 关闭报单信息获取
|
|
|
* @return mixed
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionCloseDecGet()
|
|
|
{
|
|
|
@@ -1792,7 +1797,7 @@ class UserController extends BaseController
|
|
|
/**
|
|
|
* 关闭报单
|
|
|
* @return mixed
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionCloseDec()
|
|
|
{
|
|
|
@@ -1809,7 +1814,7 @@ class UserController extends BaseController
|
|
|
/**
|
|
|
* 批量关闭报单
|
|
|
* @return mixed
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionBatchCloseDec()
|
|
|
{
|
|
|
@@ -1832,7 +1837,7 @@ class UserController extends BaseController
|
|
|
/**
|
|
|
* 按地区关闭报单
|
|
|
* @return mixed
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionCloseAreaDec()
|
|
|
{
|
|
|
@@ -1853,7 +1858,7 @@ class UserController extends BaseController
|
|
|
* 会员状态管理
|
|
|
* @return mixed
|
|
|
* @throws Exception
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
// public function actionStatusAuditList()
|
|
|
// {
|
|
|
@@ -1885,7 +1890,7 @@ class UserController extends BaseController
|
|
|
* 会员状态管理导出
|
|
|
* @return mixed
|
|
|
* @throws \yii\db\Exception
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionStatusAuditExport()
|
|
|
{
|
|
|
@@ -1917,7 +1922,7 @@ class UserController extends BaseController
|
|
|
/**
|
|
|
* 申请修改会员状态
|
|
|
* @return mixed
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionStatusAuditAdd()
|
|
|
{
|
|
|
@@ -1933,7 +1938,7 @@ class UserController extends BaseController
|
|
|
/**
|
|
|
* 获取全部移网类型
|
|
|
* @return mixed
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionStatusAuditGetStatuses()
|
|
|
{
|
|
|
@@ -1945,7 +1950,7 @@ class UserController extends BaseController
|
|
|
* 获取会员状态数据
|
|
|
* @return mixed
|
|
|
* @throws Exception
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionStatusAuditGet()
|
|
|
{
|
|
|
@@ -1973,7 +1978,7 @@ class UserController extends BaseController
|
|
|
* @return mixed
|
|
|
* @throws Exception
|
|
|
* @throws \yii\db\Exception
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionStatusAudit()
|
|
|
{
|
|
|
@@ -1991,7 +1996,7 @@ class UserController extends BaseController
|
|
|
* 删除审核修改会员状态
|
|
|
* @return mixed
|
|
|
* @throws \yii\db\Exception
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionStatusAuditDelete()
|
|
|
{
|
|
|
@@ -2009,7 +2014,7 @@ class UserController extends BaseController
|
|
|
/**
|
|
|
* 设置是否运作
|
|
|
* @return mixed
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionIsOperating()
|
|
|
{
|
|
|
@@ -2030,7 +2035,7 @@ class UserController extends BaseController
|
|
|
/**
|
|
|
* 团队领导人
|
|
|
* @return mixed
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionIsGroup()
|
|
|
{
|
|
|
@@ -2051,7 +2056,7 @@ class UserController extends BaseController
|
|
|
/**
|
|
|
* 报单中心
|
|
|
* @return mixed
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionIsDec()
|
|
|
{
|
|
|
@@ -2063,7 +2068,7 @@ class UserController extends BaseController
|
|
|
/**
|
|
|
* 工作室
|
|
|
* @return mixed
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionIsStudio()
|
|
|
{
|
|
|
@@ -2075,7 +2080,7 @@ class UserController extends BaseController
|
|
|
/**
|
|
|
* 网络图谱
|
|
|
* @return mixed
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionIsAtlas()
|
|
|
{
|
|
|
@@ -2087,7 +2092,7 @@ class UserController extends BaseController
|
|
|
/**
|
|
|
* 会员充值管理显隐设置
|
|
|
* @return mixed
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionIsRecharge()
|
|
|
{
|
|
|
@@ -2099,7 +2104,7 @@ class UserController extends BaseController
|
|
|
/**
|
|
|
* 获取企业银行信息
|
|
|
* @return mixed
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionCompanyBankGet()
|
|
|
{
|
|
|
@@ -2120,7 +2125,7 @@ class UserController extends BaseController
|
|
|
/**
|
|
|
* 调整会员转账/提现比例
|
|
|
* @return mixed
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionChangeTransferProp()
|
|
|
{
|
|
|
@@ -2149,7 +2154,7 @@ class UserController extends BaseController
|
|
|
* @return mixed
|
|
|
* @throws Exception
|
|
|
* @throws \yii\db\Exception
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionClearWallet()
|
|
|
{
|
|
|
@@ -2172,7 +2177,7 @@ class UserController extends BaseController
|
|
|
* 会员历史年度最高聘级表
|
|
|
* @return mixed
|
|
|
* @throws Exception
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionYearHighestEmpLv()
|
|
|
{
|
|
|
@@ -2193,7 +2198,7 @@ class UserController extends BaseController
|
|
|
* 会员历史年度最高聘级表导出
|
|
|
* @return mixed
|
|
|
* @throws \yii\db\Exception
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionYearHighestEmpLvExport()
|
|
|
{
|
|
|
@@ -2215,7 +2220,7 @@ class UserController extends BaseController
|
|
|
* 会员现金充值
|
|
|
* @return mixed
|
|
|
* @throws \yii\db\Exception
|
|
|
- * @throws \yii\web\HttpException
|
|
|
+ * @throws HttpException
|
|
|
*/
|
|
|
public function actionRechargeToUser()
|
|
|
{
|
|
|
@@ -2226,4 +2231,147 @@ class UserController extends BaseController
|
|
|
}
|
|
|
return static::notice(Form::formatErrorsForApi($formModel->getErrors()), 400);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 会员修改密码
|
|
|
+ * @return mixed
|
|
|
+ * @throws HttpException
|
|
|
+ */
|
|
|
+ public function actionBaModifyPassword()
|
|
|
+ {
|
|
|
+ $form = new BaUserBasicForm();
|
|
|
+ $form->scenario = 'modifyPassword';
|
|
|
+ if(Yii::$app->request->isPost && $form->load(Yii::$app->request->post(), '') && $result = $form->edit()){
|
|
|
+ return static::notice('Password modified successfully'); // 密码修改成功
|
|
|
+ } else {
|
|
|
+ return static::notice(Form::formatErrorsForApi($form->getErrors()), 400);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 个人资料获取
|
|
|
+ * @return mixed
|
|
|
+ * @throws HttpException
|
|
|
+ */
|
|
|
+ public function actionBaProfileGet() {
|
|
|
+ $id = Yii::$app->request->get('id');
|
|
|
+ $userInfo = BaUser::findOneAsArray('ID=:ID', [':ID' => $id]);
|
|
|
+ if (!$userInfo) {
|
|
|
+ return static::notice('Data does not exist', 400);//数据不存在
|
|
|
+ }
|
|
|
+// $allNation = \Yii::$app->params['nation'];
|
|
|
+// $allOpenBank = OpenBank::findAllAsArray('STATUS=1');
|
|
|
+// $data['allNation'] = $allNation;
|
|
|
+// $data['allOpenBank'] = $allOpenBank;
|
|
|
+ $data['userInfo'] = [
|
|
|
+ 'userId' => $userInfo['ID'],
|
|
|
+// 'nation' => \Yii::$app->params['nation'][$userInfo['NATION']]['name']??'',
|
|
|
+ 'realName' => $userInfo['REAL_NAME'],
|
|
|
+// 'idCard' => $userInfo['ID_CARD'],
|
|
|
+ 'mobile' => $userInfo['MOBILE'],
|
|
|
+// 'openBank' => $userInfo['OPEN_BANK'],
|
|
|
+// 'bankAddress' => $userInfo['BANK_ADDRESS'],
|
|
|
+// 'bankNo' => $userInfo['BANK_NO'],
|
|
|
+ ];
|
|
|
+
|
|
|
+ return static::notice($data);
|
|
|
+ }
|
|
|
+
|
|
|
+ public function actionBaModifyProfile() {
|
|
|
+ $form = new BaUserBasicForm();
|
|
|
+ $form->scenario = 'modifyProfile';
|
|
|
+ if(Yii::$app->request->isPost && $form->load(Yii::$app->request->post(), '') && $result = $form->modifyProfile()){
|
|
|
+ return static::notice('Personal data modified successfully');//个人资料修改成功
|
|
|
+ } else {
|
|
|
+ return static::notice(Form::formatErrorsForApi($form->getErrors()), 400);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ public function actionBaModifyStatus() {
|
|
|
+ $form = new BaUserBasicForm();
|
|
|
+ $form->scenario = 'modifyStatus';
|
|
|
+ if(Yii::$app->request->isPost && $form->load(Yii::$app->request->post(), '') && $result = $form->modifyStatus()){
|
|
|
+ return static::notice('Member status modified successfully');//会员状态修改成功
|
|
|
+ } else {
|
|
|
+ return static::notice(Form::formatErrorsForApi($form->getErrors()), 400);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @return mixed
|
|
|
+ * @throws \yii\db\Exception
|
|
|
+ * @throws HttpException
|
|
|
+ */
|
|
|
+ public function actionBaIsModifyPasswordStatus() {
|
|
|
+ $form = new BaUserBasicForm();
|
|
|
+ $form->scenario = 'isModifyPasswordStatus';
|
|
|
+ if(Yii::$app->request->isPost && $form->load(Yii::$app->request->post(), '') && $result = $form->isModifyPasswordStatus()){
|
|
|
+ return static::notice('Status modified successfully');//状态修改成功
|
|
|
+ } else {
|
|
|
+ return static::notice(Form::formatErrorsForApi($form->getErrors()), 400);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * BA会员列表
|
|
|
+ * @return mixed
|
|
|
+ * @throws Exception
|
|
|
+ * @throws \yii\web\HttpException
|
|
|
+ */
|
|
|
+ public function actionBaUserList() {
|
|
|
+ $filter = $this->filterCondition([
|
|
|
+ 'USER_NAME' => 'U.USER_NAME',
|
|
|
+ 'REAL_NAME' => 'U.REAL_NAME',
|
|
|
+ 'STATUS' => 'U.STATUS',
|
|
|
+ 'ALLOW_LOGIN' => 'U.ALLOW_LOGIN',
|
|
|
+ 'CREATED_AT' => 'U.CREATED_AT',
|
|
|
+ 'PERIOD_AT' => 'U.PERIOD_AT',
|
|
|
+ 'SPOUSE_NAME' => 'U.SPOUSE_NAME',
|
|
|
+ 'MOBILE' => 'U.MOBILE',
|
|
|
+ 'TEL' => 'U.TEL',
|
|
|
+ 'SEX' => 'U.SEX',
|
|
|
+ 'AREA' => [
|
|
|
+ 'FIELD' => ['U.PROVINCE', 'U.CITY', 'U.COUNTY'],
|
|
|
+ 'BIND' => ['PROVINCE', 'CITY', 'COUNTY'],
|
|
|
+ ],
|
|
|
+ 'ADDRESS' => 'U.ADDRESS',
|
|
|
+ 'ALLOW_TRANSFER' => 'UI.ALLOW_TRANSFER',
|
|
|
+ ]);
|
|
|
+ $condition = $filter['condition'];
|
|
|
+ $params = $filter['params'];
|
|
|
+ $condition .= ' AND UI.DELETED=0 ';
|
|
|
+ $listObj = new BaUserList();
|
|
|
+ $data = $listObj->getList(['condition' => $condition, 'params' => $params]);
|
|
|
+ return static::notice($data);
|
|
|
+ }
|
|
|
+
|
|
|
+ public function actionBaUserListExport() {
|
|
|
+ $filter = $this->filterCondition([
|
|
|
+ 'USER_NAME' => 'U.USER_NAME',
|
|
|
+ 'REAL_NAME' => 'U.REAL_NAME',
|
|
|
+ 'STATUS' => 'U.STATUS',
|
|
|
+ 'ALLOW_LOGIN' => 'U.ALLOW_LOGIN',
|
|
|
+ 'CREATED_AT' => 'U.CREATED_AT',
|
|
|
+ 'PERIOD_AT' => 'U.PERIOD_AT',
|
|
|
+ 'REC_USER_NAME' => 'RU.USER_NAME',
|
|
|
+ 'CON_USER_NAME' => 'CU.USER_NAME',
|
|
|
+ 'SPOUSE_NAME' => 'U.SPOUSE_NAME',
|
|
|
+ 'SYSTEM_NAME' => 'U.SYSTEM_ID',
|
|
|
+ 'MOBILE' => 'U.MOBILE',
|
|
|
+ 'TEL' => 'U.TEL',
|
|
|
+ 'SEX' => 'U.SEX',
|
|
|
+ 'AREA' => [
|
|
|
+ 'FIELD' => ['U.PROVINCE', 'U.CITY', 'U.COUNTY'],
|
|
|
+ 'BIND' => ['PROVINCE', 'CITY', 'COUNTY'],
|
|
|
+ ],
|
|
|
+ 'ADDRESS' => 'U.ADDRESS',
|
|
|
+ 'ALLOW_TRANSFER' => 'UI.ALLOW_TRANSFER',
|
|
|
+ ]);
|
|
|
+ $form = new BaUserExportForm();
|
|
|
+ $result = $form->run($filter, 'Ba_User_List');
|
|
|
+ if (!$result) {
|
|
|
+ return static::notice(Form::formatErrorsForApi($form->getErrors()), 400);
|
|
|
+ }
|
|
|
+ return static::notice('Starting exporting, please go to File Management - Export Files to view.'); // 导出开始,请到文件管理-导出文件查看
|
|
|
+ }
|
|
|
}
|