app Support user balance , Sometimes the balance needs to be paid , Modification table , There are several watches to look for , And modify the table directly ,app page
There will be no recharge records . use python Make interface request , Simulate real operation .
#!/usr/bin/python #coding=UTF-8 import requests import hashlib import conf def
get_cash(uid):# Get balance operation code cash_code_url = conf.cash_code_url cash_code_data = {
"uid":uid,"operator_id":"1002543687","operator_name":"zhaoyuzhong"} req_post =,data=cash_code_data)try: idx = str(req_post.json()[
'data']['cash_idx']) return idx except: print req_post.json()['msg'] def
recharge(uid,username,count_balance):# Manual payment interface cash_idx=get_cash(uid) check_str
= conf.check_str checksum = md5(checkstr) recharge_url = conf.recharge_url
recharge_data = conf.recharge_data req_post =,data=recharge_data)#post Method use data Parameter transfer print " Manual payment interface "
,req_post.json()['msg'] def withdraw(uid,username,count_cash,count_balance):
# Financial withdrawal interface cash_idx=get_cash(uid) check_str = conf.check_str checksum =
md5(checkstr) withdraw_url = conf.withdraw_url withdraw_data =
conf.withdraw_data req_post =,data=withdraw_data)
print " Financial withdrawal interface ",req_post.json()['msg'] def md5(str):# The encrypted string is md5 m=hashlib.md5()
m.update(str) psw=m.hexdigest()return psw def getBalance(uid):# Personal balance query interface
get_Balance_url = conf.getBalance_url get_Balance_data = {"uid":uid} req_post =,data=get_Balance_data) cash = myreq_post.json()[
'data']['cash'] balance= myreq_post.json()['data']['balance'] usable =
myreq_post.json()['data']['usable'] print " Withdrawable cash=",cash," balance balance=",balance,
" Available usable=",usable if __name__ == '__main__': # Give the phone number 18688888888,uid by 933634
User recharge 1000 element getBalance(933634)# Query users first uid The balance of recharge(933634,18688888888,100000)
# Manual balance replenishment ,uid, cell-phone number , Recharge amount : Company : branch getBalance(933634) # Check the balance again
results of enforcement :

©2019-2020 Toolsou All rights reserved,
ToastUtils Use of Go language Array initialization and basic operations JQ get request Splicing url parameter ( query criteria )airflow Timed tasks + Time setting +cron expression [AndroidO] [RK3399] -- GPIO Drive and control mode C#/.NET System optimization (redis Chapter 6 data structure 【List】)Mybatis Mapping file Mapper.xml in # and $ The difference between LED Scrolling text ajax get Request Chinese parameter garbled solution Centos7 lower mysql8.0 To install and change the initial password ;