소스 검색

调整微信回调

anderx 4 년 전
부모
커밋
e4121d3545
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/main/java/com/kede/wxsdk/service/WxService.java

+ 2 - 2
src/main/java/com/kede/wxsdk/service/WxService.java

@@ -267,11 +267,11 @@ public class WxService {
 		String total_fee=map.get("total_fee");
 		if (result_code.equals("SUCCESS")) {
 			Order os=orderMapper.selectByPrimaryKey(out_trade_no);
-			if (os.getPayStatus()!=1) {
+			if (os!=null&&os.getPayStatus()!=1) {
 				insertOrder(total_fee, transaction_id, out_trade_no);
 			}
 		}
-		LoggerUtils.debug(getClass(),"\n\n\n\n\n>>>>>>>>>>>>>>>>>>>>>>>>微信回调结束>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n\n\n\n\n");
+		LoggerUtils.debug(getClass(),"\n\n>>>>>>>>>>>>>>>>>>>>>>>>微信回调结束>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n\n");
 		} catch ( Exception e) {
 			e.printStackTrace();
 			throw new BusinessException("回调解析异常");