小么熊🐻 1 жил өмнө
parent
commit
f00e078892

+ 5 - 4
nbjk-admin/src/main/java/com/miaxis/app/controller/wx/WxController.java

@@ -418,10 +418,11 @@ public class WxController extends BaseController {
         httpPost.setEntity(new StringEntity(rootNode.toString(), "utf-8"));
         HttpResponse response = httpClient.execute(httpPost);
         String bodyAsString = EntityUtils.toString(response.getEntity());
-        if (JSONObject.parseObject(bodyAsString).get("prepay_id") == null){
-            throw new CustomException(JSONObject.parseObject(bodyAsString).get("message").toString());
-        }
-        return getWxParamJson(bodyAsString);
+        //if (JSONObject.parseObject(bodyAsString).get("prepay_id") == null){
+        //    throw new CustomException(JSONObject.parseObject(bodyAsString).get("message").toString());
+        //}
+
+        return JSONObject.parseObject(bodyAsString);
 
     }