请求波司登获取数据·

master
yechenhao 6 years ago
parent 0f55a4965f
commit 64b23c60d8

@ -186,7 +186,7 @@ public class StoreEmployeeService {
params.put("type", type);
params.put("state", state);
params.put("storeNo", storeNo);
String message = HttpClientUtil.httpPost("http://10.101.4.107:8080/BSD_WXAPP/qyWechat/getShareQRcode?token=" + MD5FileUtil.getMD5String("BOSIDENG" + sdf.format(new Date())), JSONObject.toJSONString(params)).getMessage();
String message = HttpClientUtil.httpPost("http://10.101.10.24:80/BSD_WXAPP/qyWechat/getShareQRcode?token=" + MD5FileUtil.getMD5String("BOSIDENG" + sdf.format(new Date())), JSONObject.toJSONString(params)).getMessage();
JSONObject qrCodeJson = JSONObject.parseObject(message);
BsdShareCodeResponse bsdResponse = qrCodeJson.toJavaObject(BsdShareCodeResponse.class);
if (bsdResponse.getSuccess()){
@ -288,6 +288,8 @@ public class StoreEmployeeService {
String strZipName = "store_qrCode_" + fileUrl + ".zip";
FileOutputStream out = new FileOutputStream(new File(strZipName));
//遍历零售公司
for (PrivilageOrganizational privilageOrganizational : privilageOrganizationals) {
if (privilageOrganizational == null || privilageOrganizational.getId() == null) {

@ -292,7 +292,7 @@ public class StorePromotionDataService {
params.put("start_time",wxCusInfoReqDO.getStart_time());
params.put("end_time",wxCusInfoReqDO.getEnd_time());
params.put("userid",wxCusInfoReqDO.getUserid());
String result = HttpUtil.get("http://10.101.4.107:8080/BSD_WXAPP/qyWechat/getUserBehaviorData?token==BOSIDENG" + MD5FileUtil.getMD5String(sdf.format(new Date())), params);
String result = HttpUtil.get("http://10.101.10.24:80/BSD_WXAPP/qyWechat/getUserBehaviorData?token==BOSIDENG" + MD5FileUtil.getMD5String(sdf.format(new Date())), params);
JSONObject parseObject = JSON.parseObject(result);
System.out.println(parseObject);
String[] behavior_data = JSONObject.parseObject(parseObject.getString("behavior_data"), String[].class);

@ -101,7 +101,7 @@ public class PromotionCodeService {
params.put("type", type);
params.put("state", state);
params.put("storeNo", storeNo);
String message = HttpClientUtil.httpPost("http://10.101.4.107:8080/BSD_WXAPP/qyWechat/getShareQRcode?token=" + MD5FileUtil.getMD5String("BOSIDENG" + sdf.format(new Date())), JSONObject.toJSONString(params)).getMessage();
String message = HttpClientUtil.httpPost("http://10.101.10.24:80/BSD_WXAPP/qyWechat/getShareQRcode?token=" + MD5FileUtil.getMD5String("BOSIDENG" + sdf.format(new Date())), JSONObject.toJSONString(params)).getMessage();
JSONObject qrCodeJson = JSONObject.parseObject(message);
BsdShareCodeResponse bsdResponse = qrCodeJson.toJavaObject(BsdShareCodeResponse.class);
if (bsdResponse.getSuccess()){
@ -124,7 +124,7 @@ public class PromotionCodeService {
p.setState(item.getStaffCode());
//没有推广码则查询
HttpResult data = HttpClientUtil.httpPost("http://10.101.4.107:8080/BSD_WXAPP/qyWechat/getShareQRcode?token=TOKEN", JSON.toJSONString(p),getToken());
HttpResult data = HttpClientUtil.httpPost("http://10.101.10.24:80/BSD_WXAPP/qyWechat/getShareQRcode?token=TOKEN", JSON.toJSONString(p),getToken());
//http返回参数
if((boolean) JSONObject.parseObject(data.getMessage()).get("success")){
String url = JSONObject.parseObject(data.getMessage()).get("data").toString();

@ -16,4 +16,4 @@ spring:
bsd:
vip: http://vtest.bsd.cn/BSD_WXAPP/miniProgram/getMemberDtlByUnionId
vip: http://10.101.10.24:80/BSD_WXAPP/miniProgram/getMemberDtlByUnionId

Loading…
Cancel
Save