|
|
@@ -49,7 +49,7 @@ public class WechatGatewaySMOImpl extends AbstractFrontServiceSMO implements IWe
|
|
|
|
|
|
@Override
|
|
|
public ResponseEntity<String>
|
|
|
- gateway(IPageData pd) throws Exception {
|
|
|
+ gateway(IPageData pd, String wId) throws Exception {
|
|
|
|
|
|
JSONObject paramIn = JSONObject.parseObject(pd.getReqData());
|
|
|
Assert.hasKeyAndValue(paramIn, "fromUserName", "请求报文中未包含fromUserName");
|
|
|
@@ -74,6 +74,11 @@ public class WechatGatewaySMOImpl extends AbstractFrontServiceSMO implements IWe
|
|
|
|
|
|
noBindOwnerResponseMessage = WechatConstant.NO_BIND_OWNER_RESPONSE_MESSAGE;
|
|
|
}
|
|
|
+ if (!noBindOwnerResponseMessage.contains("wAppId=")) {
|
|
|
+ if (noBindOwnerResponseMessage.indexOf("?") > 0) {
|
|
|
+ noBindOwnerResponseMessage += ("&wAppId=" +WechatFactory.getAppId(wId));
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
responseStr = WechatFactory.formatText(toUserName, fromUserName, noBindOwnerResponseMessage);
|
|
|
return new ResponseEntity<String>(responseStr, HttpStatus.OK);
|