...
|
...
|
@@ -71,7 +71,7 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
// 订单计算
|
|
|
compute(uid, cartType, pa) {
|
|
|
if (pa.couponCode) {
|
|
|
pa.couponCode = [...new Set(_.compact(_.split(pa.couponCode,',')))].join(',');
|
|
|
pa.couponCode = [...new Set(_.compact(_.split(pa.couponCode, ',')))].join(',');
|
|
|
}
|
|
|
|
|
|
return new EnsureApi(this.ctx).getOrderComputeAsync(
|
...
|
...
|
@@ -133,7 +133,7 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
// 订单提交
|
|
|
submit(uid, cartType, p, remoteIp) {
|
|
|
if (p.couponCode) {
|
|
|
p.couponCode = [...new Set(_.compact(_.split(p.couponCode,',')))].join(',');
|
|
|
p.couponCode = [...new Set(_.compact(_.split(p.couponCode, ',')))].join(',');
|
|
|
}
|
|
|
|
|
|
return new EnsureApi(this.ctx).orderSubmitAsync(uid, cartType, p.addressId, p.deliveryTime,
|
...
|
...
|
|