Commit 1abe53cb by 孙亚楠

dd

parent e4e20790
...@@ -56,17 +56,19 @@ class TaxService extends ServiceBase { ...@@ -56,17 +56,19 @@ class TaxService extends ServiceBase {
*/ */
async getCustomerById(params) { async getCustomerById(params) {
try { try {
let businessmen = await axios({ let customer_id = this.trim(params.customer_id);
method: 'post', // let businessmen = await axios({
url: settings.deliverSysApi().info, // method: 'post',
data: {id: params.id} // url: settings.deliverSysApi().info,
}); // data: {id: params.id}
if (businessmen.status=!200 || businessmen.data.status!=0 || !businessmen.data.data.customer_id) { // });
return system.getResult(null, `个体工商户不存在`); // if (businessmen.status=!200 || businessmen.data.status!=0 || !businessmen.data.data.customer_id) {
} // return system.getResult(null, `个体工商户不存在`);
// }
let url = settings.ntapi().getCustomerById; let url = settings.ntapi().getCustomerById;
let res = await this.callApi(url, { let res = await this.callApi(url, {
id: businessmen.data.data.customer_id // id: businessmen.data.data.customer_id
id: customer_id
}, "获取用户账簿信息"); }, "获取用户账簿信息");
return res; return res;
} catch (error) { } catch (error) {
......
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