|
|
@ -1,10 +1,12 @@ |
|
|
|
package com.hai.service.impl; |
|
|
|
package com.hai.service.impl; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import com.hai.common.exception.ErrorCode; |
|
|
|
import com.hai.common.exception.ErrorCode; |
|
|
|
import com.hai.common.exception.ErrorHelp; |
|
|
|
import com.hai.common.exception.ErrorHelp; |
|
|
|
import com.hai.common.exception.SysCode; |
|
|
|
import com.hai.common.exception.SysCode; |
|
|
|
import com.hai.common.utils.DateUtil; |
|
|
|
import com.hai.common.utils.DateUtil; |
|
|
|
|
|
|
|
import com.hai.common.utils.HttpsUtils; |
|
|
|
import com.hai.common.utils.IDGenerator; |
|
|
|
import com.hai.common.utils.IDGenerator; |
|
|
|
import com.hai.config.CommonSysConst; |
|
|
|
import com.hai.config.CommonSysConst; |
|
|
|
import com.hai.config.RechargeConfig; |
|
|
|
import com.hai.config.RechargeConfig; |
|
|
@ -268,4 +270,13 @@ public class ApiOpenServiceImpl implements ApiOpenService { |
|
|
|
outRechargeOrderMapper.updateByPrimaryKey(outRechargeOrder); |
|
|
|
outRechargeOrderMapper.updateByPrimaryKey(outRechargeOrder); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public JSONObject getAllCities() { |
|
|
|
|
|
|
|
JSONObject object = HttpsUtils.doPost(CommonSysConst.getSysConfig().getQinzhuUrl()+"/openApi/v2/cities/listAll", ""); |
|
|
|
|
|
|
|
if (object != null && !object.getBoolean("success")) { |
|
|
|
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.REQUEST_ERROR); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return object; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|