old"> 44
+        android:layout_centerVertical="true"
45
+        android:layout_toRightOf="@+id/iv_box_phone_line"
46
+        android:src="@drawable/network_ok" />
47
+
48
+</RelativeLayout>

+ 1 - 1
app/src/main/res/values/strings.xml

@@ -158,5 +158,5 @@
158 158
 
159 159
     <string name="set_price_fail">价格设置失败,请重试</string>
160 160
 
161
-    <string name="box_status_error">盒子状态错误,请检查或直接重启盒子</string>
161
+    <string name="box_status_error">盒子状态错误,请检查</string>
162 162
 </resources>

kodo - Gogs: Go Git Service

Keine Beschreibung

views.py 1.2KB

    # -*- coding: utf-8 -*- from django_logit import logit from django_response import response from account.models import UserInfo from utils.error.errno_utils import LensmanStatusCode, TokenStatusCode from utils.redis.connect import r @logit def login_qrcode_api(request): lensman_type = int(request.POST.get('lensman_type', 0)) unionid = request.POST.get('unionid', '') token = request.POST.get('token', '') if not r.token_exists(unionid, token): return response(TokenStatusCode.TOKEN_HAS_EXPIRED) # 用户校验 try: user = UserInfo.objects.get(unionid=unionid, islensman=True, status=True) except UserInfo.DoesNotExist: return response(LensmanStatusCode.LENSMAN_NOT_FOUND) # 用户状态校验 if lensman_type == UserInfo.COMMON: # 普通摄影师校验 if user.is_common_lensman and user.user_status != UserInfo.ACTIVATED: return response(LensmanStatusCode.LENSMAN_NOT_ACTIVATED) elif lensman_type == UserInfo.OUTTAKE: # 花絮摄影师校验 if user.is_outtake_lensman and user.outtake_status != UserInfo.ACTIVATED: return response(LensmanStatusCode.LENSMAN_NOT_ACTIVATED) return response(200, 'Lensman Login Success', u'摄影师登录成功', user.data)