|
@@ -2,6 +2,7 @@
|
|
|
|
|
|
|
|
namespace app\common\library;
|
|
namespace app\common\library;
|
|
|
|
|
|
|
|
|
|
+use app\admin\controller\user\User;
|
|
|
use app\common\model\Users;
|
|
use app\common\model\Users;
|
|
|
use app\common\model\UserRule;
|
|
use app\common\model\UserRule;
|
|
|
use app\common\model\UsersPath;
|
|
use app\common\model\UsersPath;
|
|
@@ -175,6 +176,7 @@ class Auth
|
|
|
'login_pwd'=> $password,
|
|
'login_pwd'=> $password,
|
|
|
'parent_id'=> $parent_info['id'],
|
|
'parent_id'=> $parent_info['id'],
|
|
|
'agent_id' => $parent_info['agent_id'],
|
|
'agent_id' => $parent_info['agent_id'],
|
|
|
|
|
+ 'invitation_code' => (new Users)->generateInviteCode(),
|
|
|
'user_type'=> 1,//真人
|
|
'user_type'=> 1,//真人
|
|
|
];
|
|
];
|
|
|
if($parent_info['is_agent']){
|
|
if($parent_info['is_agent']){
|