Commit 4affbebd by 王昆

gsb

parent 2b6ff3eb
...@@ -75,27 +75,7 @@ class UserService extends ServiceBase { ...@@ -75,27 +75,7 @@ class UserService extends ServiceBase {
// 创建商户 // 创建商户
user = await self.dao.create(user, t); user = await self.dao.create(user, t);
// 商户id赋值 return user;
title.merchant_id = merchant.id;
address.merchant_id = merchant.id;
// 创建账户
var account = await self.merchantaccountDao.create({
merchant_id: merchant.id,
channel_id: "1",
banlance: 0
}, t);
// 创建抬头
title = await self.merchanttitleDao.create(title, t);
// 创建收件地址
address = await self.merchantaddressDao.create(address, t);
merchant.accountList = [account];
merchant.titleList = [title];
merchant.addressList = [merchant.addressList];
return merchant;
}); });
} }
......
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