|
|
@ -129,24 +129,31 @@ public class AliforexcelServiceImpl implements AliforexcelService {
|
|
|
|
lessInfoMerchant.add(exception);
|
|
|
|
lessInfoMerchant.add(exception);
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
AlipayConfig.AlipayMerchant mch = AlipayEnvironment.getEnv().getAlipayOnlineMerchant();
|
|
|
|
try {
|
|
|
|
Element resultElement = alipayClient.registerOnlineGmsPortal(mch.getPid(), client);
|
|
|
|
AlipayConfig.AlipayMerchant mch = AlipayEnvironment.getEnv().getAlipayOnlineMerchant();
|
|
|
|
if (!StringUtils.equalsIgnoreCase("T", resultElement.elementText("is_success"))) {
|
|
|
|
Element resultElement = alipayClient.registerOnlineGmsPortal(mch.getPid(), client);
|
|
|
|
JSONObject exception = new JSONObject();
|
|
|
|
if (!StringUtils.equalsIgnoreCase("T", resultElement.elementText("is_success"))) {
|
|
|
|
exception.put("client_moniker", client.getString("client_moniker"));
|
|
|
|
JSONObject exception = new JSONObject();
|
|
|
|
exception.put("return_msg", resultElement.elementText("error"));
|
|
|
|
exception.put("client_moniker", client.getString("client_moniker"));
|
|
|
|
registerFailMerchant.add(exception);
|
|
|
|
exception.put("return_msg", resultElement.elementText("error"));
|
|
|
|
continue;
|
|
|
|
registerFailMerchant.add(exception);
|
|
|
|
}
|
|
|
|
continue;
|
|
|
|
Element responseElement = resultElement.element("response").element("alipay");
|
|
|
|
}
|
|
|
|
if (!StringUtils.equalsIgnoreCase("SUCCESS", responseElement.elementText("result_code"))) {
|
|
|
|
Element responseElement = resultElement.element("response").element("alipay");
|
|
|
|
|
|
|
|
if (!StringUtils.equalsIgnoreCase("SUCCESS", responseElement.elementText("result_code"))) {
|
|
|
|
|
|
|
|
JSONObject exception = new JSONObject();
|
|
|
|
|
|
|
|
exception.put("client_moniker", client.getString("client_moniker"));
|
|
|
|
|
|
|
|
exception.put("return_msg", resultElement.elementText("error"));
|
|
|
|
|
|
|
|
registerFailMerchant.add(exception);
|
|
|
|
|
|
|
|
continue;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
registerSuccessMerchant.add(client.getString("client_moniker"));
|
|
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
JSONObject exception = new JSONObject();
|
|
|
|
JSONObject exception = new JSONObject();
|
|
|
|
exception.put("client_moniker", client.getString("client_moniker"));
|
|
|
|
exception.put("client_moniker", client.getString("client_moniker"));
|
|
|
|
exception.put("return_msg", resultElement.elementText("error"));
|
|
|
|
exception.put("return_msg", e.getMessage());
|
|
|
|
registerFailMerchant.add(exception);
|
|
|
|
registerFailMerchant.add(exception);
|
|
|
|
continue;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
registerSuccessMerchant.add(client.getString("client_moniker"));
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
result.put("need_register_merchant", needRegisterMerchant);
|
|
|
|
result.put("need_register_merchant", needRegisterMerchant);
|
|
|
|
result.put("success_register_merchant", registerSuccessMerchant);
|
|
|
|
result.put("success_register_merchant", registerSuccessMerchant);
|
|
|
|