zs hai 1 ano
pai
achega
240de7e000
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/service/Cart.service.ts

+ 2 - 1
src/service/Cart.service.ts

@@ -167,7 +167,8 @@ export class CartService extends BaseService<modelType> {
           res = await this.offModel.findById(result.street).lean();
         } else assert(result.street, '缺少街道信息或社区信息!');
         if (res) obj.address = res.address;
-        if (!order) obj.status = '4';
+        if (!ShopSetting) obj.status = '4';
+        if (!Collection) obj.status = '8';
         obj.s_accounting = ShopSetting.accounting;
         obj.s_leader = ShopSetting.leader;
         obj.c_accounting = Collection.accounting;