Commit 5425456a by 徐高华

Merge branch 'feature/社群' into 'developer'

群发错误code

See merge request !862
parents d4aea4f0 5b326834
...@@ -117,7 +117,7 @@ public class QywxSendServiceImpl implements QywxSendService { ...@@ -117,7 +117,7 @@ public class QywxSendServiceImpl implements QywxSendService {
return ServiceResponse.success(msgId); return ServiceResponse.success(msgId);
} }
String error = respon.getErrorMessage(); String error = respon.getErrorMessage();
return ServiceResponse.failure("9999", error); return ServiceResponse.failure(respon.getErrorCode()+"", error);
} }
// 分享朋友圈 // 分享朋友圈
......
...@@ -134,6 +134,7 @@ import com.google.common.collect.Sets; ...@@ -134,6 +134,7 @@ import com.google.common.collect.Sets;
import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.convert.Convert; import cn.hutool.core.convert.Convert;
import cn.hutool.core.util.NumberUtil;
import cn.hutool.crypto.SecureUtil; import cn.hutool.crypto.SecureUtil;
@Service @Service
...@@ -1269,7 +1270,12 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA ...@@ -1269,7 +1270,12 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
private JSONResponse retJson(com.gic.api.base.commons.ServiceResponse<String> resp) { private JSONResponse retJson(com.gic.api.base.commons.ServiceResponse<String> resp) {
JSONResponse json = new JSONResponse(); JSONResponse json = new JSONResponse();
if(!resp.isSuccess()) { if(!resp.isSuccess()) {
json.setErrorCode(-1); String code = resp.getCode() ;
if(NumberUtil.isNumber(code) && !"1".equals(code)) {
json.setErrorCode(Integer.valueOf(resp.getCode()));
}else {
json.setErrorCode(-1);
}
json.setErrorMessage(resp.getMessage()); json.setErrorMessage(resp.getMessage());
}else { }else {
json.setSuccess(true); json.setSuccess(true);
......
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