|
@@ -46,7 +46,7 @@ export class CustomerService extends BaseService {
|
|
|
customer_id: data.customer_id,
|
|
|
},
|
|
|
});
|
|
|
- const isWhiteLabel = customer?.out_user_id.length > 0;
|
|
|
+ const isWhiteLabel = customer?.out_user_id?.length > 0;
|
|
|
if (!customer) {
|
|
|
return {
|
|
|
is_success: false,
|
|
@@ -67,9 +67,9 @@ export class CustomerService extends BaseService {
|
|
|
message: '成功',
|
|
|
};
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
const status = biz_status === 'FAIL' ? -1 : 1;
|
|
|
- customer.status = biz_status;
|
|
|
+ customer.status = biz_status;
|
|
|
// 平台用户
|
|
|
const business = await this.businessEntity.findOne({
|
|
|
where: {
|