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