Esempio n. 1
0
 def guanZhu(self):
     """
     关注
     """
     uid = 10351
     userItem = HomePage(self).fuJinDeRen_Detail(self.header,uid) #获取用户详情
     PublicFunction(self).FocusOnly(self.header,userItem)
Esempio n. 2
0
 def fujinderen(self):
     '''
     # 附近的人列表》查看人员详情 》点赞 
     '''  
     # 获取附近的人列表
     fjdrList_res = HomePage(self).fuJinDeRen_list(self.header)
     fjdrList = fjdrList_res["data"]
     if fjdrList:
         for useritem in random.sample(fjdrList, random.randint(1,len(fjdrList))):
             # 查看的人详情
             userdetail_res = HomePage(self).fuJinDeRen_Detail(self.header,useritem["uid"])
             userdetail = userdetail_res["data"]
             userdetail['id'] = userdetail['uid']
             userdetail['type'] = 2
             # 给人员点赞
             PublicFunction(self).dianZan(self.header, userdetail)
Esempio n. 3
0
 def fujindongtai(self):
     '''
     # 附近的动态列表》查看动态详情 》点赞 
     '''  
     # 获取附近动态列表
     fjdtList_res = HomePage(self).fuJinDongTai_list(self.header,self.loginUser)
     fjdtList = fjdtList_res["data"]
     if fjdtList:
         for dtitem in random.sample(fjdtList, random.randint(1,len(fjdtList))):
             # 查看动态详情
             userdtdetail_res = HomePage(self).fuJinDongTai_Detail(self.header,dtitem)
             userdtdetail = userdtdetail_res["data"]
             userdtdetail['id'] = userdtdetail['did'] 
             userdtdetail['type'] = 0
             # 给动态点赞
             PublicFunction(self).dianZan(self.header, userdtdetail)
             # 发布动态
             HomePage(self).newDynamics(self.header)
Esempio n. 4
0
 def fujinjiaZhi(self):
     '''
     # 附近的价值列表》查看价值详情 》点赞 》发布价值
     '''  
     # 获取附近价值列表
     fjjzList_res = HomePage(self).fuJinJiaZhi_list(self.header,self.loginUser)
     fjjzList = fjjzList_res["data"]
     if fjjzList:
         for praisedUser in random.sample(fjjzList, random.randint(1,len(fjjzList))):
             # 查看价值详情
             jzdetail_res = HomePage(self).fuJinJiaZhi_Detail(self.header, praisedUser)
             jzdetail = jzdetail_res["data"]
             jzdetail['id'] = jzdetail['wid'] 
             jzdetail['type'] = 0
             # 给价值点赞
             PublicFunction(self).dianZan(self.header, jzdetail)
             #发布价值
             print("uid:{}".format(self.loginUser["uid"]))
             HomePage(self).publishingValue(self.header,self.loginUser["uid"])
     else:
         print("---不好意思没有数据---")