|
|
@@ -15,6 +15,7 @@ from TimeConvert import TimeConvert as tc
|
15
|
15
|
|
16
|
16
|
from account.models import UserInfo
|
17
|
17
|
from statistic.models import RegisterStatisticInfo
|
|
18
|
+from mch.models import SaleclerkInfo
|
18
|
19
|
from utils.error.errno_utils import ProductBrandStatusCode, UserStatusCode
|
19
|
20
|
from utils.redis.connect import r
|
20
|
21
|
from utils.redis.rprofile import set_profile_info
|
|
|
@@ -154,6 +155,12 @@ def mini_login_api(request):
|
154
|
155
|
user.user_from = UserInfo.MINIAPP_USER
|
155
|
156
|
user.appid = appId
|
156
|
157
|
if unionid:
|
|
158
|
+ # 同步销售员手机号
|
|
159
|
+ try:
|
|
160
|
+ saleclerk = SaleclerkInfo.objects.get(unionid=unionid, is_auth=True, status=True)
|
|
161
|
+ user.phone = saleclerk.clerk_phone
|
|
162
|
+ except:
|
|
163
|
+ pass
|
157
|
164
|
user.unionid = unionid
|
158
|
165
|
user.user_status = UserInfo.ACTIVATED
|
159
|
166
|
user.signup_ip = client_ip(request)
|