Commit 4231eaf5 authored by 何娜's avatar 何娜

tax

parent def2bf94
Pipeline #4469 passed with stage
in 3 seconds
......@@ -34,7 +34,6 @@ class TaskService extends Service {
_checkSuccess(result) {
if (result.status !== 200) {
ctx.logger.info('_checkSuccess',JSON.stringify(result))
const errorMsg = result.data && result.data.error_msg ? result.data.error_msg : 'unknown error';
this.ctx.throw(result.status, errorMsg);
}
......@@ -103,8 +102,8 @@ class TaskService extends Service {
let newCityMap = new Map();
const newret = await this._request(cityConfigUrl, 'gsgj', {method: 'get'});
ctx.logger.info(`【Task】getCityList ${cityConfigUrl} params gsgj`, JSON.stringify(newret.data.code));
this._checkSuccess(newret);
ctx.logger.info(`【Task】getCityList ${cityConfigUrl} params gsgj`, JSON.stringify(newret));
// this._checkSuccess(newret);
newret.data.data.map(Prov => {
Prov.citys.map(city => {
newCityMap.set(String(city.id), city)
......@@ -112,8 +111,8 @@ class TaskService extends Service {
});
const ret = await this._request(cityConfigUrl, '51gs', {method: 'get'});
ctx.logger.info(`【Task】getCityList ${cityConfigUrl} params 51gs`, JSON.stringify(newret.data.code));
this._checkSuccess(ret);
ctx.logger.info(`【Task】getCityList ${cityConfigUrl} params 51gs`, JSON.stringify(newret));
// this._checkSuccess(ret);
ret.data.data.map(Prov => {
let newProv = {provinceName: Prov.provinceName, citys: []};
Prov.citys.map(city => {
......
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