Beispiel #1
0
def zhyposter_send():
	phone = request.args.get('ph')
	addr = request.args.get('ad')
	areaid = request.args.get('ai')
	x = ZHY_Login_Reg()
	result = x.poster_send(phone,addr,areaid)
	return jsonify({'result':result})
Beispiel #2
0
def zhyorders():
	whoo = request.args.get('who')
	userphone = request.args.get('phone')
	gp = request.args.get('gp')
	x = ZHY_Login_Reg()
	result = x.orders(whoo,userphone,gp)
	return jsonify({'result':result})
Beispiel #3
0
def zhychagnge():
	userphone = request.args.get('phone')
	userpass = request.args.get('oldp')
	newpass = request.args.get('newp')
	x = ZHY_Login_Reg()
	result = x.changepass(userphone,userpass,newpass)
	return jsonify({'result':result})
Beispiel #4
0
def zhy_uc():
	id = request.args.get('id')
	up = request.args.get('up')
	pp = request.args.get('pp')
	co = request.args.get('co')
	x = ZHY_Login_Reg()
	result = x.add_comment(id,up,pp,co)
	return jsonify({'result':result})
Beispiel #5
0
def zhyuser_send():
	uphone = request.args.get('up')
	gname = request.args.get('gn')
	gphone = request.args.get('gh')
	gaddr = request.args.get('ga')
	x = ZHY_Login_Reg()
	result = x.user_send(uphone,gname,gphone,gaddr)
	return jsonify({'result':result})
Beispiel #6
0
def zhylogin():
	user = request.args.get('name')
	passw = request.args.get('passw')
	x = ZHY_Login_Reg()
	result = x.check(user,passw)
	if result:
		return jsonify({'result':result})
	else:
		return jsonify({'result':'fail'})
Beispiel #7
0
def zhyaddposter():
	userphone = request.args.get('phone')
	username = request.args.get('name')
	userpass = request.args.get('pass')
	areaid = request.args.get('area')
	x = ZHY_Login_Reg()
	result = x.addposter(userphone,username,userpass,areaid)
	if result:
		return jsonify({'result': result})
	else:
		return jsonify({'result': result})
Beispiel #8
0
def zhy_get_poser_inf():
	id = request.args.get('id')
	x = ZHY_Login_Reg()
	resurt = x.get_out_poser(id)
	return jsonify({'result':resurt})
Beispiel #9
0
def zhy_sure_sended():
	id = request.args.get('id')
	x  = ZHY_Login_Reg()
	result = x.send_it(id)
	return jsonify({'result':result})
Beispiel #10
0
def zhyget_out_it():
	itid = request.args.get('id')
	poser = request.args.get('ph')
	x = ZHY_Login_Reg()
	result = x.poser_get_it(itid,poser)
	return jsonify({'result':result})
Beispiel #11
0
def zhyget_user_b_p():
	uphone = request.args.get('up')
	x = ZHY_Login_Reg()
	result = x.return_user(uphone)
	return jsonify({'result':result})
Beispiel #12
0
def zhy_ret_poco():
	ph = request.args.get('ph')
	x = ZHY_Login_Reg()
	result = x.re_po_co(ph)
	return jsonify({'result':result})
Beispiel #13
0
def zhyuser_out_all():
	areaid = request.args.get('ai')
	x = ZHY_Login_Reg()
	result = x.return_out_all(areaid)
	return jsonify({'result':result})
Beispiel #14
0
def zhyuser_out():
	phone = request.args.get('ph')
	x = ZHY_Login_Reg()
	result = x.return_out(phone)
	return jsonify({'result':result})
Beispiel #15
0
def zhy_get_n_out():
	id = request.args.get('id')
	x = ZHY_Login_Reg()
	resurt = x.get_out_orders(id)
	return jsonify({'result': resurt})
Beispiel #16
0
def zhy_add_id_ns():
	id = request.args.get('id')
	kid = request.args.get('kid')
	x = ZHY_Login_Reg()
	result = x.ins_out_kdi(id,kid)
	return jsonify({'result':result})
Beispiel #17
0
def zhyget_per():
	typee = request.args.get('tp')
	aid = request.args.get('aid')
	x = ZHY_Login_Reg()
	result = x.return_per(typee,aid)
	return jsonify({'resule':result})
Beispiel #18
0
def zhy_del_user():
	ph = request.args.get('ph')
	x = ZHY_Login_Reg()
	result = x.deluser(ph)
	return jsonify({'result': result})
Beispiel #19
0
def zhyget_an():
	typee = request.args.get('tp')
	uphone = request.args.get('up')
	x = ZHY_Login_Reg()
	result = x.return_inf_n_a(typee,uphone)
	return jsonify({'result':result})