|
@@ -49,7 +49,12 @@ public class AppService {
|
|
|
*/
|
|
|
@Async
|
|
|
public void notify(int appId, String orderNum, String body) {
|
|
|
- String notifyUrl = this.packUrl(appDao.select(appId).getNotifyUrl(), orderNum);
|
|
|
+ App app = appDao.select(appId);
|
|
|
+ String notifyUrl = this.packUrl(app.getNotifyUrl(), orderNum);
|
|
|
+ if(Objects.isNull(notifyUrl) || notifyUrl.trim().isEmpty()) {
|
|
|
+ logger.debug("未配置异步通知地址:{} : {}", app.getAppKey(), app.getAppName());
|
|
|
+ return;
|
|
|
+ }
|
|
|
logger.debug("异步通知: 请求地址: {}, 参数: {}", notifyUrl, body);
|
|
|
String result = HttpUtil.postJson(notifyUrl, body);
|
|
|
logger.debug("异步通知: 返回信息: {}", result);
|