|
@@ -41,12 +41,14 @@ export class accountsService extends BaseService {
|
|
|
async addAccounts(params, res) {
|
|
|
// openPaymentAccountEntity.
|
|
|
const openUserObj = {
|
|
|
- ...res.legal_entity,
|
|
|
+ ...res.data,
|
|
|
+ ...res.data.legal_entity,
|
|
|
mch_id: params.mchId,
|
|
|
- account_id: res.id,
|
|
|
- status: res.status || '',
|
|
|
+ account_id: res.data.id,
|
|
|
+ status: res.data.status || '',
|
|
|
source: 'EASYPAY',
|
|
|
};
|
|
|
+ this.ctx.logger.info(`添加va账户,${JSON.stringify(openUserObj)}`)
|
|
|
delete openUserObj.id;
|
|
|
return await this.openAccountEntity.insert(openUserObj);
|
|
|
}
|