Commit 48df4097 by 杨树贤

进一步判断

parent 4fb14eac
Showing with 3 additions and 2 deletions
...@@ -2,7 +2,6 @@ package service ...@@ -2,7 +2,6 @@ package service
import ( import (
"encoding/json" "encoding/json"
"github.com/gogf/gf/util/gconv"
"go_sku_server/model" "go_sku_server/model"
c "go_sku_server/pkg/common" c "go_sku_server/pkg/common"
"go_sku_server/pkg/gredis" "go_sku_server/pkg/gredis"
...@@ -13,6 +12,8 @@ import ( ...@@ -13,6 +12,8 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/gogf/gf/util/gconv"
"github.com/gomodule/redigo/redis" "github.com/gomodule/redigo/redis"
_ "github.com/iancoleman/orderedmap" _ "github.com/iancoleman/orderedmap"
"github.com/syyongx/php2go" "github.com/syyongx/php2go"
...@@ -250,7 +251,7 @@ func (ls *LyService) GetIsBuy(sku model.LySku) (isBuy int) { ...@@ -250,7 +251,7 @@ func (ls *LyService) GetIsBuy(sku model.LySku) (isBuy int) {
return return
} }
if sku.AbilityLevel == 0 && sku.OrgId = 1 { if sku.AbilityLevel == 0 && sku.OrgId == 1 && sku.Canal != "L0015730" {
return return
} }
if sku.Stock == 0 { if sku.Stock == 0 {
......
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 sign in to comment