Ejemplo n.º 1
0
 def addDoorFeedback(self, doorId):
     #133、新增门锁问题反馈(v1.1新增)
     # 请求参数 {""doorId":1,"memo":"","doorDesc":"","imgKeyStr":"图片,逗号隔开"}
     url = 'http://118.178.242.96:8371/FffdAppServer/door/addDoorFeedback.rest'
     dict1 = {"doorId": doorId}
     json_dict = json.dumps(dict1, ensure_ascii=False)
     A = Paixu()
     B = A.get_canshu(dict1, 'pingguo')
     header = B[1]
     header['u_ticket'] = self.token
     logging.info("now header is %s" % header)
     response = requests.post(url, headers=header, data=json_dict)
     print(response.json())
Ejemplo n.º 2
0
 def queryTradeInfo(self, orderNo, bizType):
     #98、获得交易记录详情[v1.0新增]
     url = 'http://118.178.242.96:8371/FffdAppServer/account/queryTradeInfo.rest'
     logging.info('current url is %s' % url)
     dict1 = {"orderNo": orderNo, "bizType": bizType}
     json_dict = json.dumps(dict1, ensure_ascii=False)
     A = Paixu()
     B = A.get_canshu(dict1, 'pingguo')
     header = B[1]
     header['u_ticket'] = self.token
     logging.info("now header is %s" % header)
     response = requests.post(url, headers=header, data=json_dict)
     print(response.json())
Ejemplo n.º 3
0
 def sendDoorPWDMessage(self, authId, moobile):
     #129、发送短信(v1.0新增)
     #请求参数 {"authId":授权id,"moobile":"手机号"}
     url = 'http://118.178.242.96:8371/FffdAppServer/door/sendDoorPWDMessage.rest'
     dict1 = {"authId": authId, "moobile": moobile}
     json_dict = json.dumps(dict1, ensure_ascii=False)
     A = Paixu()
     B = A.get_canshu(dict1, 'pingguo')
     header = B[1]
     header['u_ticket'] = self.token
     logging.info("now header is %s" % header)
     response = requests.post(url, headers=header, data=json_dict)
     print(response.json())
Ejemplo n.º 4
0
 def addEstateFeedback(self, memo):
     #134、新增小区问题反馈
     # 请求参数{"memo":" 问题描述","imgKeyStr":"图片,逗号隔开"}
     url = 'http://118.178.242.96:8371/FffdAppServer/door/addEstateFeedback.rest'
     dict1 = {"memo": memo}
     json_dict = json.dumps(dict1, ensure_ascii=False)
     A = Paixu()
     B = A.get_canshu(dict1, 'pingguo')
     header = B[1]
     header['u_ticket'] = self.token
     logging.info("now header is %s" % header)
     response = requests.post(url, headers=header, data=json_dict)
     print(response.json())
Ejemplo n.º 5
0
 def checkUserPerms(self, B):
     #143、检查用户是否有门锁权限(v1.1新增)
     #请求参数{"houseId":用于查找大门,非必填,"rentId":房间ID}
     url = 'http://118.178.242.96:8371/FffdAppServer/system/getConfigInfo.rest'
     dict1 = {B}
     json_dict = json.dumps(dict1, ensure_ascii=False)
     A = Paixu()
     B = A.get_canshu(dict1, 'pingguo')
     header = B[1]
     header['u_ticket'] = self.token
     logging.info("now header is %s" % header)
     response = requests.post(url, headers=header, data=json_dict)
     print(response.json())
Ejemplo n.º 6
0
 def listDoorInfo(self, houseId, authUserId):
     #127、获取房源门锁列表(v1.0新增)
     #请求参数{"houseId":1,"rentIdList":[1,1]}   房子id  出租房源id集合
     url = 'http://118.178.242.96:8371/FffdAppServer/door/listDoorInfo.rest'
     dict1 = {"houseId": houseId, "authUserId": authUserId}
     json_dict = json.dumps(dict1, ensure_ascii=False)
     A = Paixu()
     B = A.get_canshu(dict1, 'pingguo')
     header = B[1]
     header['u_ticket'] = self.token
     logging.info("now header is %s" % header)
     response = requests.post(url, headers=header, data=json_dict)
     print(response.json())
Ejemplo n.º 7
0
 def cancelRentApplyList(self, contractId):
     #109、退租申请记录 >
     url = 'http://118.178.242.96:8371/FffdAppServer/contract/cancelRentApplyList.rest'
     logging.info('current url is %s' % url)
     dict1 = {"contractId": contractId}
     json_dict = json.dumps(dict1, ensure_ascii=False)
     A = Paixu()
     B = A.get_canshu(dict1, A.pingguo)
     header = B[1]
     header['u_ticket'] = self.token
     logging.info("now header is %s" % header)
     response = requests.post(url, headers=header, data=json_dict)
     print(response.json())
Ejemplo n.º 8
0
 def myHouseEstate(self):
     #82、我的房子小区列表V1.2 >
     url = 'http://118.178.242.96:8371/FffdAppServer/house/myHouseEstate.rest'
     logging.info('current url is %s' % url)
     dict1 = {"": ""}
     json_dict = json.dumps(dict1, ensure_ascii=False)
     A = Paixu()
     B = A.get_canshu(dict1, 'pingguo')
     header = B[1]
     header['u_ticket'] = self.token
     logging.info("now header is %s" % header)
     response = requests.post(url, headers=header, data=json_dict)
     print(response.json())
Ejemplo n.º 9
0
 def getNewDoorPWD(self, doorId, authUserId):
     #126、获取新密码(v1.0新增)
     #  请求参数{"doorId":门锁ID,"authUserId":授权人ID}
     url = 'http://118.178.242.96:8371/FffdAppServer/door/getNewDoorPWD.rest'
     dict1 = {"doorId": doorId, "authUserId": authUserId}
     json_dict = json.dumps(dict1, ensure_ascii=False)
     A = Paixu()
     B = A.get_canshu(dict1, 'pingguo')
     header = B[1]
     header['u_ticket'] = self.token
     logging.info("now header is %s" % header)
     response = requests.post(url, headers=header, data=json_dict)
     print(response.json())
Ejemplo n.º 10
0
 def applyUrgentTempPWD(self, doorId):
     #130、申请紧急临时密码(v1.1新增)
     # 请求参数 {"authId":授权id,"userId":1,"source":1}
     url = 'http://118.178.242.96:8371/FffdAppServer/door/applyUrgentTempPWD.rest'
     dict1 = {"doorId": doorId}
     json_dict = json.dumps(dict1, ensure_ascii=False)
     A = Paixu()
     B = A.get_canshu(dict1, 'pingguo')
     header = B[1]
     header['u_ticket'] = self.token
     logging.info("now header is %s" % header)
     response = requests.post(url, headers=header, data=json_dict)
     print(response.json())
Ejemplo n.º 11
0
 def getDoorBaseInfo(self, doorId):
     #120、获取门锁基本信息(v1.0新增)  "doorId":11,门锁ID
     url = 'http://118.178.242.96:8371/FffdAppServer/door/getDoorBaseInfo.rest'
     logging.info('current url is %s' % url)
     dict1 = {"doorId": doorId}
     json_dict = json.dumps(dict1, ensure_ascii=False)
     A = Paixu()
     B = A.get_canshu(dict1, 'pingguo')
     header = B[1]
     header['u_ticket'] = self.token
     logging.info("now header is %s" % header)
     response = requests.post(url, headers=header, data=json_dict)
     print(response.json())
     return response.json(), response.status_code
Ejemplo n.º 12
0
 def getJointRentHouseDetail1(self, houseId):  #n参数为了获取houseId
     #71获取合租房子详情 请求参数{“houseId”:111}
     url = 'http://118.178.242.96:8371/FffdAppServer/house/getJointRentHouseDetail.rest'  #71获取合租房子详情 请求参数{"houseId":111}   houseId;//房子id(我的房子列表中的id)
     logging.info('current url is %s' % url)
     dict1 = {"houseId": houseId}
     json_dict = json.dumps(dict1, ensure_ascii=False)
     A = Paixu()
     B = A.get_canshu(dict1, 'pingguo')
     header = B[1]
     header['u_ticket'] = self.token
     logging.info("now header is %s" % header)
     response = requests.post(url, headers=header, data=json_dict)
     print(response.json())
     return response.json(), response.status_code
Ejemplo n.º 13
0
 def add_hxim_friend(self, userHxId, agentHxId):
     # 62、新增环信好友关系 >
     # 请求参数{"userHxId":"房东环信ID","agentHxId":"经纪人环信ID"}
     url = 'http://118.178.242.96:8371/FffdAppServer/user/add_hxim_friend.rest'
     logging.info('current url is %s' % url)
     dict1 = {"userHxId": userHxId, "agentHxId": agentHxId}
     json_dict = json.dumps(dict1, ensure_ascii=False)
     A = Paixu()
     B = A.get_canshu(dict1, A.pingguo)
     header = B[1]
     header['u_ticket'] = self.token
     logging.info("now header is %s" % header)
     response = requests.post(url, headers=header, data=json_dict)
     print(response.json())
Ejemplo n.º 14
0
 def channel_list1(self, Id):
     #获得房源同步平台情况   请求参数{ "bizType":1,"id":"出售ID或出租ID","noPublishChannel":1}
     #bizType 1、出租;2、出售             noPublishChannel 0、获取已发布过的平台;1、获取所有平台
     url = 'http://118.178.242.96:8371/FffdAppServer/house/publish_rent.rest'
     logging.info('current url is %s' % url)
     dict1 = {"id": Id, "bizType": 1, "noPublishChannel": 1}
     json_dict = json.dumps(dict1, ensure_ascii=False)
     A = Paixu()
     B = A.get_canshu(dict1, A.pingguo)
     header = B[1]
     header['u_ticket'] = self.token
     logging.info("now header is %s" % header)
     response = requests.post(url, headers=header, data=json_dict)
     print(response.json())
Ejemplo n.º 15
0
 def getCardBin(self, bankCardNo):
     #87、获取银行卡开户行(v1.0)
     url = 'http://118.178.242.96:8371/FffdAppServer/account/getCardBin.rest'
     logging.info('current url is %s' % url)
     dict1 = {"bankCardNo": bankCardNo}
     json_dict = json.dumps(dict1, ensure_ascii=False)
     A = Paixu()
     B = A.get_canshu(dict1, 'pingguo')
     header = B[1]
     header['u_ticket'] = self.token
     logging.info("now header is %s" % header)
     response = requests.post(url, headers=header, data=json_dict)
     print(response.json())
     return response.json(), response.status_code
Ejemplo n.º 16
0
 def get_task_count(self, id):
     #50、获得房源进行中任务数 >
     #请求参数 {"id": 111,"bizType": 1} id 出租ID或出售ID   bizType 类型:1、出租;2、出售
     url = 'http://118.178.242.96:8371/FffdAppServer/channel/account_state_check.rest'
     logging.info('current url is %s' % url)
     dict1 = {"id": id, "bizType": 1, "channelTag": "3"}
     json_dict = json.dumps(dict1, ensure_ascii=False)
     A = Paixu()
     B = A.get_canshu(dict1, A.pingguo)
     header = B[1]
     header['u_ticket'] = self.token
     logging.info("now header is %s" % header)
     response = requests.post(url, headers=header, data=json_dict)
     print(response.json())
Ejemplo n.º 17
0
 def account_login(self, account, channelTag):
     #51、渠道平台账户登录[v1.3修改]
     #请求参数{"channelTag":"渠道标识","account":"账号"}  channelTag 渠道标识:1、百姓网,2、安居客,3、房多多
     url = 'http://118.178.242.96:8371/FffdAppServer/channel/account_login.rest'
     logging.info('current url is %s' % url)
     dict1 = {"account": account, "channelTag": channelTag}
     json_dict = json.dumps(dict1, ensure_ascii=False)
     A = Paixu()
     B = A.get_canshu(dict1, A.pingguo)
     header = B[1]
     header['u_ticket'] = self.token
     logging.info("now header is %s" % header)
     response = requests.post(url, headers=header, data=json_dict)
     print(response.json())
Ejemplo n.º 18
0
 def listJointRentRoom1(self, n):
     # 72获取合租房间列表   请求参数{"houseId":111}
     url = 'http://118.178.242.96:8371/FffdAppServer/house/listJointRentRoom.rest'  # 72获取合租房间列表   请求参数{"houseId":111}
     logging.info('current url is %s' % url)
     dict1 = {"houseId": n}
     json_dict = json.dumps(dict1, ensure_ascii=False)
     A = Paixu()
     B = A.get_canshu(dict1, 'pingguo')
     header = B[1]
     header['u_ticket'] = self.token
     logging.info("now header is %s" % header)
     response = requests.post(url, headers=header, data=json_dict)
     print(response.json())
     return response.json(), response.status_code
Ejemplo n.º 19
0
 def account_state_check(self, channelTag, account):
     #渠道平台账户注册
     #channelTag 渠道标识:1、百姓网,2、安居客,3、房多多,4、赴集,5、豆瓣,6、五八
     #account 账号
     url = 'http://118.178.242.96:8371/FffdAppServer/channel/account_state_check.rest'
     logging.info('current url is %s' % url)
     dict1 = {"channelTag": channelTag, "account": account}
     json_dict = json.dumps(dict1, ensure_ascii=False)
     A = Paixu()
     B = A.get_canshu(dict1, A.pingguo)
     header = B[1]
     header['u_ticket'] = self.token
     logging.info("now header is %s" % header)
     response = requests.post(url, headers=header, data=json_dict)
     print(response.json())
Ejemplo n.º 20
0
 def listDoorTempPWD(self, doorId, authUserId, source):
     #121、获取门锁临时密码列表(v1.0新增)
     #请求参数 "doorId":1,门锁ID,"authUserId":授权人ID, "source":来源 1.房东 2.租客
     url = 'http://118.178.242.96:8371/FffdAppServer/door/listDoorTempPWD.rest'
     logging.info('current url is %s' % url)
     dict1 = {"doorId": doorId, "authUserId": authUserId, "source": source}
     json_dict = json.dumps(dict1, ensure_ascii=False)
     A = Paixu()
     B = A.get_canshu(dict1, 'pingguo')
     header = B[1]
     header['u_ticket'] = self.token
     logging.info("now header is %s" % header)
     response = requests.post(url, headers=header, data=json_dict)
     print(response.json())
     return response.json(), response.status_code
Ejemplo n.º 21
0
 def myHouseContractCount(self):
     #首页代办事项
     url = 'http://118.178.242.96:8371/FffdAppServer/user/myHouseContractCount.rest	'
     logging.info('current url is %s' % url)
     dict1 = {"": ""}
     json_dict = json.dumps(dict1, ensure_ascii=False)
     A = Paixu()
     B = A.get_canshu(dict1, 'pingguo')
     header = B[1]
     header['u_ticket'] = self.token
     logging.info("now header is %s" % header)
     response = requests.post(url, headers=header, data=json_dict)
     print(response.json())
     print(response.status_code)
     return response.json(), response.status_code
Ejemplo n.º 22
0
 def realname_register(self, name, idCard):
     #3实名登记
     url = 'http://118.178.242.96:8371/FffdAppServer/user/realname_register.rest'
     logging.info('current url is %s' % url)
     dict1 = {"realName": name, "idCard": idCard}
     json_dict = json.dumps(dict1, ensure_ascii=False)
     json_dict.encode('utf-8').decode('latin1')
     A = Paixu()
     B = A.get_canshu(dict1, 'pingguo')
     header = B[1]
     header['u_ticket'] = self.token
     logging.info("now header is %s" % header)
     response = requests.post(url, headers=header, data=json_dict)
     print(response.json())
     return response.json()
Ejemplo n.º 23
0
 def copy_house(self, houseResourceId, rentType):
     #64、复制房屋信息[v1.4新增]
     #houseResourceId;//房源列表中的id,房间id
     #rentType;//房源列表中的1整租,3合租
     url = 'http://118.178.242.96:8371/FffdAppServer/house/copy_house.rest'
     logging.info('current url is %s' % url)
     dict1 = {"houseResourceId": houseResourceId, "rentType": rentType}
     json_dict = json.dumps(dict1, ensure_ascii=False)
     A = Paixu()
     B = A.get_canshu(dict1, A.pingguo)
     header = B[1]
     header['u_ticket'] = self.token
     logging.info("now header is %s" % header)
     response = requests.post(url, headers=header, data=json_dict)
     print(response.json())
Ejemplo n.º 24
0
 def addDoorPWD(self, A):
     #124、创建门锁密码(v1.0新增)
     #请求参数  "doorId":门锁ID,   "authUserId":授权人ID,  "name":"被授权人姓名",   "mobile":"mobile",    "pwd":"密码",    "type":授权类型:1、房东授权;2、租客授权;3、临时密码授权,
     #"effectiveTime":""生效时间 - 只有临时密码授权可用 yyyy-MM-dd HH:mm:ss,   "expirationTime":" 生效时间 - 只有临时密码授权可用 yyyy-MM-dd HH:mm:ss",
     #"doorType":门锁类型:1、大门;2、内门    ,       source来源 1房东 2租客       times;次数
     url = 'http://118.178.242.96:8371/FffdAppServer/door/addDoorPWD.rest'
     dict1 = {A}
     json_dict = json.dumps(dict1, ensure_ascii=False)
     A = Paixu()
     B = A.get_canshu(dict1, 'pingguo')
     header = B[1]
     header['u_ticket'] = self.token
     logging.info("now header is %s" % header)
     response = requests.post(url, headers=header, data=json_dict)
     print(response.json())
Ejemplo n.º 25
0
 def bindIdentity(self, realName, idCard):
     #88、提交实名认证(v1.0)
     #realName;//真实姓名
     #idCard;//身份证号
     url = 'http://118.178.242.96:8371/FffdAppServer/account/bindIdentity.rest'
     logging.info('current url is %s' % url)
     dict1 = {"realName": realName, "idCard": idCard}
     json_dict = json.dumps(dict1, ensure_ascii=False)
     A = Paixu()
     B = A.get_canshu(dict1, 'pingguo')
     header = B[1]
     header['u_ticket'] = self.token
     logging.info("now header is %s" % header)
     response = requests.post(url, headers=header, data=json_dict)
     print(response.json())
     return response.json()
Ejemplo n.º 26
0
 def completeReleaseContract(self, releaseContractId):
     #108、确认解约合同
     '''
     :param releaseContractId:解约合同id
     :return:
     '''
     url = 'http://118.178.242.96:8371/FffdAppServer/contract/createReleaseContract.rest'
     logging.info('current url is %s' % url)
     dict1 = {"releaseContractId": releaseContractId}
     json_dict = json.dumps(dict1, ensure_ascii=False)
     A = Paixu()
     B = A.get_canshu(dict1, A.pingguo)
     header = B[1]
     header['u_ticket'] = self.token
     logging.info("now header is %s" % header)
     response = requests.post(url, headers=header, data=json_dict)
     print(response.json())
Ejemplo n.º 27
0
 def publish_rent(self, A):
     #14、发布整租 [v1.4修改]>
     #请求参数{"subEstateId":"子划分ID","buildingId":"楼栋ID","building":"楼栋名称","room":"室号","bedroomSum":"室","livingRoomSum":"厅","wcSum":"卫","spaceArea":"面积","price":"租金","floor":"当前楼层","layers":"总楼层","decorateType":"装修等级","ventilation":"朝向","memo":"描述","houseEquipment":"房屋配置,多个用英文逗号隔开","payMethod":"付款方式","housePlan":"户型图"}
     #decorateType 装修等级:1、毛坯;2、简装;3、精装;4、豪装      ventilation 朝向:1、东,2、西,3、南,4、北,5、南北,6、东西,7、东南,8、东北,9、西南,10、西北
     #房屋配置:1、床,2、沙发,3、洗衣机,4、空调,5、电视,6、冰箱,7、热水器,8、宽带,9、可做饭,10、阳台,11、独立卫生间
     #payMethod 付款方式:1、押一付一,2、押一付三,3、半年付,4、年付,5、面议
     url = 'http://118.178.242.96:8371/FffdAppServer/house/publish_rent.rest'
     logging.info('current url is %s' % url)
     dict1 = {A}
     json_dict = json.dumps(dict1, ensure_ascii=False)
     A = Paixu()
     B = A.get_canshu(dict1, A.pingguo)
     header = B[1]
     header['u_ticket'] = self.token
     logging.info("now header is %s" % header)
     response = requests.post(url, headers=header, data=json_dict)
     print(response.json())
Ejemplo n.º 28
0
 def getRentBillDetail(self, billId):
     #111、获取租赁账单详情 >
     '''
     :param billId: 账单类型 1.普通账单 2.解约账单
     :return:
     '''
     url = 'http://118.178.242.96:8371/FffdAppServer/bill/getRentBillDetail.rest'
     logging.info('current url is %s' % url)
     dict1 = {"billId": billId, "type": 1}
     json_dict = json.dumps(dict1, ensure_ascii=False)
     A = Paixu()
     B = A.get_canshu(dict1, A.pingguo)
     header = B[1]
     header['u_ticket'] = self.token
     logging.info("now header is %s" % header)
     response = requests.post(url, headers=header, data=json_dict)
     print(response.json())
Ejemplo n.º 29
0
 def getReleaseContractDetail(self, contractId):
     #105、解约合同详情 v1.3修改 >
     '''
     :param contractId: 合同ID
     :return:
     '''
     url = 'http://118.178.242.96:8371/FffdAppServer/contract/getReleaseContractDetail.rest'
     logging.info('current url is %s' % url)
     dict1 = {"contractId": contractId}
     json_dict = json.dumps(dict1, ensure_ascii=False)
     A = Paixu()
     B = A.get_canshu(dict1, A.pingguo)
     header = B[1]
     header['u_ticket'] = self.token
     logging.info("now header is %s" % header)
     response = requests.post(url, headers=header, data=json_dict)
     print(response.json())
Ejemplo n.º 30
0
 def send_verifcode(self, mobile):
     # 发送验证码
     base_url = "http://118.178.242.96:8371/FffdAppServer/user/send_verifycode.rest"  # f发送验证码   请求参数"mobile": "15921135537"
     logging.info('huo qu url :%s' % base_url)
     try:
         dict1 = {"mobile": mobile}
         json_dict = json.dumps(dict1, ensure_ascii=False)
         A = Paixu()
         B = A.get_canshu(dict1, A.pingguo)
         header = B[1]  # 获取请求头信息
         # C=A.get_time()#获取时间戳
         logging.info("now header is %s" % header)
         response = requests.post(base_url, headers=header, data=json_dict)
         # print(response.json())
         return response.json()
     except:
         cuoWuXinXi = 'qing zai one miute hou zai dian ji '
         logging.info(cuoWuXinXi)