Commit 1abe53cb by 孙亚楠

dd

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