Эх сурвалжийг харах

查询就触发---(添加缓存中的登录访问)

pzb 5 жил өмнө
parent
commit
5296948472

+ 10 - 0
Controller/UserBrandController.py

@@ -644,6 +644,7 @@ class UserBrandInfo(View):
         add_time = request_dict.getlist('add_time', None)
         table_name = request_dict.getlist('table_name', None)
         param_flag = CommonService.get_param_flag(data=[id, username])
+
         if param_flag is True:
             check_perm = ModelService.check_perm(userID=userID, permID=10)
             if check_perm is True:
@@ -663,6 +664,15 @@ class UserBrandInfo(View):
         line = int(request_dict.get('line', None))
         username = request_dict.get('username', None)
         param_flag = CommonService.get_param_flag(data=[page, line])
+
+        # 增加用户扩展信息
+        redisObj = RedisObject()
+        logKey = USER_BRAND_ALL
+        data_list = redisObj.lrange(logKey, 0, -1)
+        redisObj.del_data(key=logKey)
+        # 添加user_brand_all表信息
+        my.user_brand_all_item_put(user_brand_all, data_list)
+        print ('添加了数据')
         if param_flag is True:
             check_perm = ModelService.check_perm(userID=userID, permID=30)
             page_value = []