Commit 4dd183ed by jinxin

token

parent a4ad58b0
...@@ -53,26 +53,6 @@ public class Config { ...@@ -53,26 +53,6 @@ public class Config {
private String promotionCaseId; private String promotionCaseId;
@Value("${promotionCaseName}") @Value("${promotionCaseName}")
private String promotionCaseName; private String promotionCaseName;
@Value("${buySuiteId}")
private String buySuiteId;
@Value("${suiteid}")
private String suiteid;
public String getSuiteid() {
return suiteid;
}
public void setSuiteid(String suiteid) {
this.suiteid = suiteid;
}
public String getBuySuiteId() {
return buySuiteId;
}
public void setBuySuiteId(String buySuiteId) {
this.buySuiteId = buySuiteId;
}
public String getQywxCashierSecret() { public String getQywxCashierSecret() {
return qywxCashierSecret; return qywxCashierSecret;
......
...@@ -104,7 +104,7 @@ public class AppOrderApiServiceImpl implements AppOrderApiService { ...@@ -104,7 +104,7 @@ public class AppOrderApiServiceImpl implements AppOrderApiService {
String secret = config.getQywxCashierSecret(); String secret = config.getQywxCashierSecret();
String promotionCaseName = config.getPromotionCaseName(); String promotionCaseName = config.getPromotionCaseName();
String promotionCaseId = config.getPromotionCaseId(); String promotionCaseId = config.getPromotionCaseId();
String buySuiteId = config.getBuySuiteId(); String buySuiteId = config.getWxSuiteid();
WxEnterpriseDTO wxEnterpriseDTO = wxEnterpriseService.selectById(wxEnterpriseId); WxEnterpriseDTO wxEnterpriseDTO = wxEnterpriseService.selectById(wxEnterpriseId);
String openCorpid = wxEnterpriseDTO.getOpenCorpid(); String openCorpid = wxEnterpriseDTO.getOpenCorpid();
String serviceCorpid = config.getCorpid(); String serviceCorpid = config.getCorpid();
...@@ -369,7 +369,7 @@ public class AppOrderApiServiceImpl implements AppOrderApiService { ...@@ -369,7 +369,7 @@ public class AppOrderApiServiceImpl implements AppOrderApiService {
return ServiceResponse.success(true); return ServiceResponse.success(true);
} }
//不存在的需要根据订单id获取订单详情,并保存进数据库 //不存在的需要根据订单id获取订单详情,并保存进数据库
String suiteid = config.getSuiteid(); String suiteid = config.getWxSuiteid();
JSONObject json = new JSONObject(); JSONObject json = new JSONObject();
json.put("orderid", orderId); json.put("orderid", orderId);
ServiceResponse<AppOrderInfoResponseDTO> response = qywxOrderApiService.getAppOrderInfo(suiteid, null, JSON.toJSONString(json)); ServiceResponse<AppOrderInfoResponseDTO> response = qywxOrderApiService.getAppOrderInfo(suiteid, null, JSON.toJSONString(json));
...@@ -421,7 +421,7 @@ public class AppOrderApiServiceImpl implements AppOrderApiService { ...@@ -421,7 +421,7 @@ public class AppOrderApiServiceImpl implements AppOrderApiService {
return ServiceResponse.failure("-9999","参数不能为空"); return ServiceResponse.failure("-9999","参数不能为空");
} }
logger.info("定时获取好办付费应用订单列表参数:{}",param); logger.info("定时获取好办付费应用订单列表参数:{}",param);
String suiteid = config.getSuiteid(); String suiteid = config.getWxSuiteid();
ServiceResponse<AppOrderResponseListDTO> response = qywxOrderApiService.getAppOrderInfoList(suiteid, null, param); ServiceResponse<AppOrderResponseListDTO> response = qywxOrderApiService.getAppOrderInfoList(suiteid, null, param);
if (response.isSuccess()){ if (response.isSuccess()){
AppOrderResponseListDTO result = response.getResult(); AppOrderResponseListDTO result = response.getResult();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment