|
|
@@ -11,6 +11,7 @@ import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import com.cyksj.common.exception.BusinessRuntimeException;
|
|
|
import com.cyksj.common.task.GlobalThreadPoolTaskExecutor;
|
|
|
import com.cyksj.common.util.Jsons;
|
|
|
+import com.cyksj.common.util.StringUtil;
|
|
|
import com.cyksj.mapper.*;
|
|
|
import com.cyksj.mapper.manage.cms.CmsUserMapper;
|
|
|
import com.cyksj.model.entity.*;
|
|
|
@@ -103,7 +104,7 @@ public class AfDianRechargeServiceImpl implements AfDianRechargeService {
|
|
|
if (cmsUser == null) {
|
|
|
throw BusinessRuntimeException.getInstance("充值失败,请联系客服开通");
|
|
|
}
|
|
|
- throw BusinessRuntimeException.getInstance("充值失败");
|
|
|
+ throw BusinessRuntimeException.getInstance("充值失败,{0}", StringUtil.getErrorText(e));
|
|
|
}
|
|
|
String operator = null;
|
|
|
if (cmsUser != null) {
|
|
|
@@ -185,16 +186,6 @@ public class AfDianRechargeServiceImpl implements AfDianRechargeService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public static void main(String[] args) throws Exception {
|
|
|
- String url = "https://cz.afdian.org/api" + "/stocks/public/outstock/" + "9fae51b5-344c-46e5-839d-c470c32f1abb";
|
|
|
- HttpResponse response = HttpRequest.get(url).setConnectionTimeout(10000).execute();
|
|
|
-
|
|
|
- String body = response.body();
|
|
|
- System.out.println(body);
|
|
|
- AfDianTaskStatusResp taskStatusResp = Jsons.parseObject(body, AfDianTaskStatusResp.class);
|
|
|
- System.out.println(Jsons.toJson(taskStatusResp));
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* 设置代充自动充值异常
|
|
|
*/
|