ff

  ("杀手金币","家族金币","潜能剂","珠宝卡","通用加速","伤兵恢复加速","投资加速","训练加速","建造加速","防御武器加速")
http://192.168.13.35:8000/api/get_etl_economy_data

{"game_id":97, "player_id":1094490069}
            json_str = postArgs.get("status")[0]
            js1=str(json_str,'utf-8')
#            data={"status":js1}
#            urls = ['http://10.219.1.9:8081', 'http://10.219.0.59:8081']


            req_list = [   # 请求列表

                grequests.post('http://10.219.0.6:8081', data={"status":js1}),
                grequests.post('http://10.219.0.59:8081', data={"status":js1}),

                ]

#            rs = (grequests.post(u, data=params) for u in urls)

            res_list = grequests.map(req_list)


            lg,fei=map(self.req,res_list)


import pandas as pd
import json
import requests
import time
import json 
#ee=eek.iloc[3]

#k1=predict(ee)
#
#k=out_item(ee)


#            lg  = self.req('http://10.219.0.6:8081', data )
##
#            fei  =self.req('http://10.219.0.59:8081', data )


url='http://192.168.13.35:8000/api/get_etl_economy_data'
#35.196.46.13
#url='http://127.0.0.1:8082'

# http://192.168.13.35:8000/api/get_etl_economy_data

c={"game_id":97, "player_id":1094490069}
c1=json.dumps(c)
r = requests.post(url, data=c1 )
d=r.text
d1=json.loads(d)

你可能感兴趣的:(ff)