|
@@ -20,7 +20,8 @@ import (
|
20
|
20
|
func (s *GoodsServ) Orders(
|
21
|
21
|
info *model.TaGoodsOrders,
|
22
|
22
|
details []model.TaGoodsOrdersDetail,
|
23
|
|
- customercouponid string) error {
|
|
23
|
+ customercouponid,
|
|
24
|
+ innerUser string) error {
|
24
|
25
|
// org := s.ctx.Get("org").(model.SysOrg)
|
25
|
26
|
cust := s.ctx.Get("customer").(model.TaCustomer)
|
26
|
27
|
|
|
@@ -51,7 +52,8 @@ func (s *GoodsServ) Orders(
|
51
|
52
|
return err
|
52
|
53
|
}
|
53
|
54
|
|
54
|
|
- if info.PayType == models.CONSUME_INNER {
|
|
55
|
+ if innerUser == "sales" {
|
|
56
|
+ info.PayType = models.CONSUME_INNER
|
55
|
57
|
// 内部人员, 可以直接购买
|
56
|
58
|
// TODO
|
57
|
59
|
} else {
|