Commit c058ee2a by 孙龙

Merge branch 'dev' of http://119.23.72.7/mushishixian/search_server into dev

# Conflicts:
#	conf/redis_key.ini
#	conf/search.ini
#	routes/router.go
#	test/test4.go
parents 8d014493 326ae7ed
......@@ -2,8 +2,8 @@ package main
import (
"flag"
"fmt"
"os"
"fmt"
"search_server/boot"
"search_server/pkg/gredis"
"search_server/service"
......@@ -19,12 +19,20 @@ func main() {
panic(err)
}
lock_key := "searchapi_6666";
//flag := gredis.Set(lock_key,php2go.Time()+2)
flag := gredis.Setnx(lock_key,2222)
fmt.Println(flag)
os.Exit(1)
//lock_key := "searchapi_668777";
////flag := gredis.Set(lock_key,php2go.Time()+2)
//flag,_ := gredis.Setnx(lock_key,2222)
//
//fmt.Println(flag)
//os.Exit(1)
redisConn := gredis.Conn("search_r")
defer redisConn.Close()
attrName, err := gredis.String(redisConn.Do("GET", "hcy1"))
fmt.Println(err)
fmt.Println(attrName)
//os.Exit(1)
dd := service.OutLink("LM358","-1")
print("niin")
print(dd)
......
......@@ -15,4 +15,12 @@ password = root
host = 192.168.2.250
database = test
table_prefix =
type = mysql
[spu]
user_name = spu
password = spu
host = 192.168.1.234
database = liexin_spu
table_prefix =lie_
type = mysql
\ No newline at end of file
......@@ -6,6 +6,8 @@ SUPPLIER_REDIS_PRE=SUPPLIER_REDIS_INFO_
SUPPLIER_REDIS_LIST_PRE=SUPPLIER_REDIS_LIST_INFO_
;新增sku时判读sku是否存在
SKU_UNIQUE_JUDGE=sku_unique_judge
;新增sku时判读sku是否存在
SPU_UNIQUE_JUDGE=sku_unique_judge
;品牌信息判断,根据md5后的品牌名称获取id
BRAND_NAME_ALL=brand_name_all
;品牌id,获取品牌名称
......@@ -24,4 +26,12 @@ TAX_CUSTOMS_INFO=tax_customs_info
[redis_ziyin]
AGG_TABLE=sz_ziying_class_aggs
FIRST_LISTS_TABLE=ziying_first_lists
ZIYING_CLASS_KEY=ziying_class_string
\ No newline at end of file
ZIYING_CLASS_KEY=ziying_class_string
TAX_CUSTOMS_INFO=tax_customs_info
;存放联营所有sku
SKU=sku
;存放联营所有spu
SPU=SPU
;存放digikey 型号映射
SKU_RAW_MAP=sku_raw_map
POOL_ALIKE_GOODS=pool_alike_goods
[supplier_all]
1 ="rochester"
2 ="verical"
3 ="tme"
1 = "rochester"
2 = "verical"
3 = "tme"
#相似物料供应商
[alike_supplier]
1 = "ti"
[common]
'MOUSER_API'='http://footstone.liexin.net/webapi/handle_mouser'
MOUSER_API='http://footstone.liexin.net/webapi/handle_mouser'
[brand]
IS_NOT_TI = 0
TI_LY_BRAND_IDS=23,45069,7754,17484,43215,13421,5220,7636,44534,43556,44543,9429,758,9470,10430,10653,10707,11227,11276,11819,12608,12965,12997,13327,13675,13680,13752
TI_ZY_BRAND_IDS=23
TI_LY_BRAND_IDS = 23,45069,7754,17484,43215,13421,5220,7636,44534,43556,44543,9429,758,9470,10430,10653,10707,11227,11276,11819,12608,12965,12997,13327,13675,13680,13752
TI_ZY_BRAND_IDS = 23
[supplier]
# 供应商redis的首key
......@@ -44,4 +45,35 @@ MK=MK(米客方德)
贝岭=BL(上海贝岭)
[ZIYING_CONFIG]
Index=liexin_ziying
\ No newline at end of file
Index=liexin_ziying
[official_website]
1 = https://www.futureelectronics.cn/search/?text=liexin
2 = http://www.powerandsignal.com/Products/Search?searchBox=liexin
3 = https://www.rocelec.com/search?q=liexin
4 = https://www.tme.eu/zh/katalog/#search=liexin
5 = https://www.verical.com/s/liexin/
6 = https://cn.element14.com/search?st=liexin
7 = https://www.digikey.com/products/en?keywords=liexin
8 = https://www.chip1stop.com/CHN/zh/view/searchResult/SearchResultTop?keyword=liexin
9 = http://www.aipco.com/search.php?pn=liexin
10 = https://www.arrow.com/en/products/search?cat=&q=liexin
11 = https://www.biscoind.com?SEARCHTEXT=liexin
12 = https://www.alliedelec.com/view/search?keyword=liexin
13 = https://www.avnet.com/shop/apac/search/liexin
14 = https://www.mouser.com/Search/Refine?Keyword=liexin
15 =
16 =
18 =
19 = https://www.peigenesis.cn/cn/shop/f/liexin.html
20 = https://www.powell.com/e2wItemQuickSearch.aspx?searchText=liexin
21 = https://uk.rs-online.com/web/c/semiconductors/amplifiers-comparators/op-amps/?searchTerm=liexin
22 =
1672 = https://www.masterelectronics.com/parts.aspx?text=liexin
1673 = https://www.rutronik24.com/search-result/qs:liexin
1675 = https://www.zaikostore.com/zaikostore/stockList?productName_forFind=liexin
1676 = https://www.buerklin.com/en/search?text=liexin
1677 = https://www.microchipdirect.com/product/search/all/liexin
1678 = https://estore.heilindasia.com/search.asp?p=liexin
1680 = http://shop.wpgam.com/WPGAStore/index.php?route=product/search&filter_description=true&filter_name=liexin
......@@ -2,43 +2,33 @@ package controller
import (
"github.com/gin-gonic/gin"
"search_server/framework/gin_"
"search_server/protopb/mouser"
"search_server/model"
"search_server/pkg/common"
"search_server/service"
)
func init() {
MouserService := service.NewMouserServiceImpl()
gin_.NewBuilder().WithService(MouserService).
WithEndpoint(MouserGetData(MouserService)).
WithRequest(MouserRequest()).
WithResponse(MouserResponse()).Build("/search/mouser/test", "POST")
//搜索型号
func GetMouserData(c *gin.Context) {
goodsName, _ := c.GetPostForm("goods_name")
lycon := new(service.CommonLyService)
}
//处理请求
func MouserGetData(c *service.MouserServiceImpl) gin_.Endpoint {
return func(context *gin.Context, request interface{}) (response interface{}, err error) {
rsp := &mouser.MouserResponse{}
//err = c.MouserGetData(context, request.(*mouser.MouserRequest), rsp)
return rsp, err
//调外链拿数据
apiData := service.OutLink(&goodsName,"1")
//供应商详情
supplierInfo := model.SUPPLIER_REDIS_INFO_{
SupplierId:14,
SupplierNickname: "mouser",
}
}
//接收请求
func MouserRequest() gin_.EncodeRequestFunc {
return func(context *gin.Context) (i interface{}, e error) {
bReq := &mouser.MouserRequest{}
err := context.BindQuery(bReq) //使用的是query 参数
bReq.GoodsName, _ = context.GetPostForm("goods_name")
if err != nil {
return nil, err
}
return bReq, nil
goods := lycon.GetSkuByGoodsSn(apiData,&supplierInfo)
var errCode int
if len(goods) == 0 {
errCode = 1
}
}
//响应请求
func MouserResponse() gin_.DecodeResponseFunc {
return func(context *gin.Context, res interface{}) error {
context.JSON(200, res)
return nil
res := common.BomResponse{
ErrCode: errCode,
ErrMsg: "",
Data: goods,
}
c.JSON(200, res)
}
......@@ -30,9 +30,11 @@ func QuoteIndex(c *gin.Context) {
return
}
var res interface{}
if request.FollowHit != 0 && request.FollowHit != 1 {
service.GetGoodsBySupplier(request)
res,_ = service.GetGoodsBySupplier(request)
} else {
res,_ = service.GetGoodsBySupplier(request)
}
flag := 1
......@@ -43,7 +45,7 @@ func QuoteIndex(c *gin.Context) {
c.JSON(200, common.Response{
ErrCode: flag,
ErrMsg: "",
Data: nil,
Data: res,
})
}
package dao
import (
"encoding/json"
"github.com/ichunt2019/logger"
"search_server/model"
"search_server/pkg/mysql"
)
//根据id获取供应商信息
func GetSupplierExtraBySupplierId(supplierId int) (supplierExtra model.SupplierExtra, err error) {
_, err = mysql.Conn("spu").Table("lie_supplier_extra").Select("hk_delivery,cn_delivery,price_json as price_json_str,ad_text,supplier_logo,ad_url,sort").
Where("supplier_id = ?", supplierId).Get(&supplierExtra)
if supplierExtra.PriceJsonStr != "" {
err = json.Unmarshal([]byte(supplierExtra.PriceJsonStr), &supplierExtra.PriceJson)
if err != nil {
logger.Error("%s", err)
}
}
return
}
......@@ -4,6 +4,7 @@ go 1.14
require (
github.com/basgys/goxml2json v1.1.0
github.com/coreos/etcd v3.3.18+incompatible
github.com/gin-contrib/cors v1.3.1
github.com/gin-gonic/gin v1.6.3
github.com/go-ini/ini v1.57.0
......
package middleware
import (
"github.com/gin-gonic/gin"
)
var Context *gin.Context
//将gin的上下文放到全局变量
func ContextVars() gin.HandlerFunc {
return func(c *gin.Context) {
//将gin的上下文放到全局变量
Context = c
c.Next()
}
}
......@@ -8,9 +8,14 @@ type ApiGoods struct {
GoodsSn string `json:"goods_sn"`
GoodsType int `json:"goods_type"`
SupplierId int `json:"supplier_id"`
Moq int `json:"moq"`
Mpq int `json:"mpq"`
Stock int `json:"stock"`
Moq int `json:"-"`
MoqStr interface{} `json:"moq"`
Mpq int `json:"-"`
MpqStr interface{} `json:"mpq"`
Mpl int `json:"-"`
MplStr interface{} `json:"mpl"`
Stock int `json:"-"`
StockStr interface{} `json:"stock"`
HkDeliveryTime string `json:"hk_delivery_time"`
CnDeliveryTime string `json:"cn_delivery_time"`
LadderPrice []LadderPrice `json:"ladder_price"`
......@@ -25,7 +30,6 @@ type ApiGoods struct {
GoodsImages string `json:"goods_images"`
GoodsBrief string `json:"goods_brief,omitempty"`
IsBuy int `json:"is_buy"`
Mpl int `json:"mpl"`
Status int `json:"status"`
Pdf string `json:"pdf"`
Encap string `json:"encap"`
......@@ -60,11 +64,34 @@ type ApiGoods struct {
ClassName3 string `json:"class_name3,omitempty"`
ErpTax bool `json:"erp_tax"`
ScmBrand ScmBrand `json:"scm_brand,omitempty"`
}
//经过处理后的商品数据
type DullGoodsData struct {
ApiGoods
//额外增加的字段
GoodsNameTemp string `json:"goods_name_temp,omitempty"`
Multiple int `json:"multiple,omitempty"`
SearchSampleApplication string `json:"search_sample_application"`
SearchContactExperts string `json:"search_contact_experts"`
GoodsNameTemp string `json:"goods_name_temp,omitempty"`
Multiple int `json:"-"`
MultipleStr interface{} `json:"multiple,omitempty"`
SupplierLogo string `json:"supplier_logo,omitempty"`
SupplierSort int `json:"supplier_sort,omitempty"`
SupplierAd interface{} `json:"supplier_ad"`
SearchSampleApplication string `json:"search_sample_application"`
SearchContactExperts string `json:"search_contact_experts"`
PageFlag int `json:"page_flag"`
SupplierWebsite string `json:"supplier_website"`
PurchaseName string `json:"purchase_name"`
Ratio int `json:"ratio"`
PriceXs float64 `json:"price_xs"`
PriceProfit float64 `json:"price_profit"`
PriceHkxs float64 `json:"price_hkxs"`
CouponId int `json:"coupon_id"`
CouponTitle string `json:"coupon_title"`
LastSearchTime int `json:"last_search_time"`
CustomsTax string `json:"customs_tax"`
Alike string `json:"alike"`
BrandUrl string `json:"brand_url"`
GoodsUrl string `json:"goods_url"`
}
type Attr struct {
......@@ -79,17 +106,18 @@ type OtherAttrs struct {
}
type LadderPrice struct {
Purchases int `json:"purchases"`
PriceUs float64 `json:"price_us"`
PriceCn float64 `json:"price_cn"`
PriceAc float64 `json:"price_ac"`
Purchases int `json:"-"`
PurchasesStr interface{} `json:"purchases"`
PriceUs float64 `json:"price_us"`
PriceCn float64 `json:"price_cn"`
PriceAc float64 `json:"price_ac,omitempty"`
}
type Coefficient struct {
Cn string `json:"cn"`
Hk string `json:"hk"`
ExtraRatio string `json:"extra_ratio"`
Ratio string `json:"ratio"`
Cn float64 `json:"cn"`
Hk float64 `json:"hk"`
ExtraRatio float64 `json:"extra_ratio"`
Ratio float64 `json:"ratio"`
Tax float64 `json:"tax"`
}
......
......@@ -11,14 +11,17 @@ type LyClearGoodsList struct {
GoodsImg string `json:"goods_img"` //sku图片
Cat string `json:"cat"` //分类
RestrictionMessage string `json:"RestrictionMessage"` //额外购买限制内容,如 ‘当前商品不在本地区销售’
Increment uint64 `json:"increment"` //最小包装量、倍数
Increment int64 `json:"increment"` //最小包装量、倍数 =Mpq
SinglePrice float64 `json:"single_price"` //最小单价
Tiered []*TierItem //价格梯度数量
Stock int64 `json:"increment"` //库存
Moq int64 `json:"moq"` //最小起订量、起订量
Tiered []*TierItem //价格梯度数量
}
type TierItem struct {
Purchases uint64 //购买数量
PriceUs float64 //数量对应的英文价格
PriceCn float64 //数量对应的中文价格
PriceAc float64 `json:"price_ac"`
}
/*
......@@ -48,7 +51,7 @@ Array
)
*/
type SUPPLIER_REDIS_INFO_ struct {
SupplierId string `json:"supplier_id"` //供应商id
SupplierId int64 `json:"supplier_id"` //供应商id
SupplierNickname string `json:"supplier_nickname"` //供应商名称
AdText string `json:"ad_text"` //供应商描述
CnDelivery string `json:"cn_delivery"` //国内交货时间
......@@ -114,30 +117,25 @@ Array
)
*/
type LySkuInfo struct {
SpuId string `json:"spu_id"` //spu_id
Encoded string `json:"encoded"`
Moq int `json:"moq"`
Mpq int `json:"mpq"`
OldGoodsId int `json:"old_goods_id"`
GoodsType int `json:"goods_type"`
GoodsStatus int `json:"goods_status"`
BatchSn string `json:"batch_sn"`
Stock string `json:"stock"`
UpdateTime string `json:"update_time"`
GoodsImages string `json:"goods_images"`
Canal string `json:"canal"`
SupplierId string `json:"supplier_id"`
IsExpire string `json:"is_expire"`
HkDeliveryTime string `json:"hk_delivery_time"`
CnDeliveryTime string `json:"cn_delivery_time"`
LadderPrice []*LadderPrice2 `json:"ladder_price"`
}
type LadderPrice2 struct {
Purchases int `json:"purchases"` //数量
PriceUs float64 `json:"price_us"` //英文价格
PriceCn float64 `json:"price_cn"` //中文价格
PriceAc float64 `json:"price_ac"`
SpuId string `json:"spu_id"` //spu_id
Encoded string `json:"encoded"`
Moq int64 `json:"moq"`
Mpq int64 `json:"mpq"`
OldGoodsId int64 `json:"old_goods_id"`
GoodsType int `json:"goods_type"`
GoodsStatus int `json:"goods_status"`
BatchSn string `json:"batch_sn"`
Stock int64 `json:"stock"`
UpdateTime int64 `json:"update_time"`
GoodsImages string `json:"goods_images"`
Canal string `json:"canal"`
SupplierId int64 `json:"supplier_id"`
IsExpire string `json:"is_expire"`
HkDeliveryTime string `json:"hk_delivery_time"`
CnDeliveryTime string `json:"cn_delivery_time"`
LadderPrice []*TierItem `json:"ladder_price"`
}
/*
spu详情
Array
......@@ -154,17 +152,17 @@ Array
[spu_brief] =>
[update_time] => 1540893752
)
*/
*/
type LySpuInfo struct {
ClassId1 string `json:"class_id1"` //一级分类
ClassId2 string `json:"class_id2"` //二级分类
ClassId3 string `json:"class_id3"` //三级分类
BrandId string `json:"brand_id"` //品牌ID
SpuName string `json:"spu_name"` //型号名称
Status string `json:"status"` // 状态
ImagesL string `json:"images_l"` //图片
Encap string `json:"encap"` //封装
Pdf string `json:"pdf"` //pdf
SpuBrief string `json:"spu_brief"` //描述
UpdateTime string `json:"update_time"` //更新时间
}
\ No newline at end of file
ClassId1 int64 `json:"class_id1"` //一级分类
ClassId2 int64 `json:"class_id2"` //二级分类
ClassId3 int64 `json:"class_id3"` //三级分类
BrandId int64 `json:"brand_id"` //品牌ID
SpuName string `json:"spu_name"` //型号名称
Status int `json:"status"` // 状态
ImagesL string `json:"images_l"` //图片
Encap string `json:"encap"` //封装
Pdf string `json:"pdf"` //pdf
SpuBrief string `json:"spu_brief"` //描述
UpdateTime int64 `json:"update_time"` //更新时间
}
......@@ -6,18 +6,25 @@ import (
"search_server/pkg/gredis"
)
type QuoteSupplier struct {
type SupplierExtra struct {
HkDelivery string `json:"hk_delivery"`
CnDelivery string `json:"cn_delivery"`
PriceJson string `json:"price_json"`
PriceJson []PriceJson `json:"price_json"`
PriceJsonStr string `json:"-"`
AdText string `json:"ad_text"`
SupplierLogo string `json:"supplier_logo"`
AdUrl string `json:"ad_url"`
Sort int `json:"sort"`
}
type PriceJson struct {
Hk float64 `json:"hk"`
Cn float64 `json:"cn"`
Rate float64 `json:"rate"`
}
func getSupplier(supplierId string) {
redisCon := gredis.Conn("default_r")
redisCon := gredis.Conn("search_r")
defer redisCon.Close()
supplierInfoStr, _ := redis.String(redisCon.Do("HGET", config.Get("supplier.SUPPLIER_REDIS_PRE")))
if supplierInfoStr != "" {
......
......@@ -2,10 +2,16 @@ package common
import (
"crypto/md5"
crand "crypto/rand"
"encoding/hex"
"github.com/syyongx/php2go"
"math/big"
"math/rand"
"regexp"
"search_server/pkg/vars"
"strconv"
"strings"
"time"
)
// Md5 md5()
......@@ -65,9 +71,80 @@ func CaseInsensitiveReplace(subject string, search string, replace string) strin
return searchRegex.ReplaceAllString(subject, replace)
}
/*
md5字符串
*/
func GetKey(s string) string {
return php2go.Md5(strings.ToLower(s))
}
/**
* 获取联营活动价
*/
func lyActivityPrice() {
}
\ No newline at end of file
func lyActivityPrice() {
}
/*构造SPU和SKU的ID
*生成19位纯数组id
*/
func CreateId(types string) string {
var id, db string
if types == "sku" {
id = "1"
db = strconv.Itoa(php2go.Rand(0, 9)) + strconv.Itoa(php2go.Rand(0, 9))
} else {
id = "2"
db = "0" + strconv.Itoa(php2go.Rand(0, 9))
}
s := rand.New(rand.NewSource(time.Now().UnixNano())).Int31n(1000000)
return id + strconv.FormatInt(int64(s), 10) + strconv.FormatInt(php2go.Time(), 10) + db
}
/*
* 反爬虫用html标签替换数字,不包括“.”
* number 数字串
*/
func NumberToHtml(number int) (html string) {
numberToClassSlice := vars.NumberToClass
if number != 0 {
//数字转字符串
numberStr := ToString(number)
for i := 0; i < len(numberStr); i++ {
var classHtml string
numStr := php2go.Substr(numberStr, uint(i), 1)
if php2go.IsNumeric(numStr) {
num, _ := strconv.Atoi(numStr)
index := php2go.Rand(0, 3)
class := numberToClassSlice[num][index]
otherClass := StrRandom(3)
classHtml = `<font class="` + class + otherClass + `"></font>`
}
html = html + classHtml
return
}
}
return
}
/**
* 生成纯小写字母的字符串
* 返回形式如下 : yuiopkdsi rnvewjeil xmiqplmza
*/
func StrRandom(lenNum int) string {
randStr := "sdwpkxmiqplmzacbmeruwulurjlauejrifkfghjklzxcvbnmqwwertyuiopkdsieurnvewjeilweiskvnx"
strLen := len(randStr) - 9
var result string
for i := 0; i < lenNum; i++ {
start := php2go.Rand(0, strLen)
str := php2go.Substr(randStr, uint(start), 9)
result = result + " " + str
}
return result
}
//生成范围区间内的随机数
func Rand(min, max int) int {
n, _ := crand.Int(crand.Reader, big.NewInt(int64(max+1)))
return int(n.Int64()) + min
}
package common
import (
"github.com/gomodule/redigo/redis"
"github.com/syyongx/php2go"
"github.com/tidwall/gjson"
"search_server/pkg/config"
"search_server/pkg/gredis"
"strings"
)
//获取上次查询时间等信息
func GetLastSearchTime(goodsId string) (timeStamp int) {
redisCon := gredis.Conn("search_r")
defer redisCon.Close()
key := config.Get("redis_all.SEARCH_SHOW_SKU_TIME").String()
timeStamp, err := redis.Int(redisCon.Do("HGET", key, goodsId))
if err != nil {
timeStamp = 0
}
return
}
//获取关税信息
func GetCustomsTax(goodsName, brandName string) (tax string) {
if goodsName == "" || brandName == "" {
return
}
redisCon := gredis.Conn("search_r")
defer redisCon.Close()
member := php2go.Md5(strings.ToUpper(goodsName + brandName))
key := config.Get("redis_all.TAX_CUSTOMS_INFO")
res, _ := redis.String(redisCon.Do("HGET", key, member))
taxRateRow := gjson.Get(res, "tax_rate_low").Float()
if res == "" || taxRateRow <= 0 {
return
}
return ToString(taxRateRow) + "%"
}
......@@ -27,5 +27,12 @@ func BuildDatabaseList() (DatabaseList map[string]BaseDatabase) {
Database: Get("bom.database").String(),
Prefix: Get("mysql.prefix").String(),
},
"spu": {
UserName: Get("spu.user_name").String(),
Password: Get("spu.password").String(),
Host: Get("spu.host").String(),
Database: Get("spu.database").String(),
Prefix: Get("spu.table_prefix").String(),
},
}
}
......@@ -2,19 +2,16 @@ package mysql
import (
"fmt"
"github.com/go-xorm/xorm"
_ "github.com/go-sql-driver/mysql"
"github.com/go-xorm/xorm"
"search_server/pkg/config"
"search_server/pkg/e"
)
var DatabaseConMap map[string]*xorm.Engine
var DatabaseConMap map[string]*xorm.Engine
func Setup() error{
DatabaseConMap = make(map[string]*xorm.Engine,0)
func Setup() error {
DatabaseConMap = make(map[string]*xorm.Engine, 0)
DatabaseList := config.BuildDatabaseList()
var err error
//循环生成数据库链接
......@@ -24,10 +21,10 @@ func Setup() error{
host := db.Host
database := db.Database
dataSourceName := fmt.Sprintf("%s:%s@tcp(%s)/%s?charset=utf8",userName,password,host,database)
dataSourceName := fmt.Sprintf("%s:%s@tcp(%s)/%s?charset=utf8", userName, password, host, database)
DatabaseConMap[conName], err = xorm.NewEngine("mysql", dataSourceName)
if err!=nil{
if err != nil {
return e.NewFatalError(err.Error()) //这里返回致命异常
}
......@@ -44,7 +41,7 @@ func Setup() error{
return nil
}
func Conn(conName string) *xorm.Engine {
return DatabaseConMap[conName]
}
package vars
//数字转class字符串,按顺序0-9
var NumberToClass = [][]string{
{"sfgdqwer", "asfgdtyhg", "asfgdpolk", "asfgdpoqw"},
{"sfgdrfdf","asfgderfd","asfgdwdsa","asfgdpoer"},
{"asfgdasde","asfgdqwsz","asfgdrtgd","asfgdpovv"},
{"asfgdwsxc","asfgdwsxz","asfgdrfvb","asfgdpoee"},
{"asfgdqazs","asfgdqasd","asfgdqwag","asfgdpogh"},
{"asfgdrtyh","asfgdyutr","asfgdeews","asfgdpotg"},
{"asfgdpluj","asfgdikjf","asfgdesgj","asfgdpfff"},
{"asfgdtrdb","asfgdiksf","asfgdsgkp","asfgdprty"},
{"asfgdpehl","asfgdstgb","asfgderll","asfgdpokf"},
{"asfgdpehg","asfgdstgf","asfgderlf","asfgdpogk"},
}
......@@ -22,6 +22,8 @@ type QuoteIndexRequest struct {
FirstSearchPage int `form:"first_search_page"`
P int `form:"p"`
Topic int `form:"topic"`
K1 int `form:"k1"`
K2 int `form:"k2"`
}
func CheckQuoteRequest(r QuoteIndexRequest) (errCode int, errMsg string) {
......
......@@ -8,14 +8,21 @@ import (
//初始化路由
func InitRouter() *gin.Engine {
r := gin.New()
<<<<<<< HEAD
//r.Use(gin.Logger())
//r.Use(gin.Recovery())
//r.Use(middleware.Cors())
=======
r.Use(gin.Logger())
r.Use(gin.Recovery())
r.Use(middleware.Cors())
r.Use(middleware.ContextVars())
>>>>>>> 326ae7ed67d5d2db331dddd1277d36b8b1992b08
//路由
r.POST("/search/bom/autospu", controller.AutoSpu)
r.POST("/search/bom/recommend", controller.Recommend)
r.POST("search/ZiYing/zyh", controller.Zyh)
r.POST("search/mouser/GetMouserData", controller.GetMouserData)
//快手平台相关
r.GET("/search/quote", controller.QuoteIndex)
......
package service
import (
"fmt"
"github.com/gomodule/redigo/redis"
"github.com/syyongx/php2go"
_ "github.com/tidwall/gjson"
"search_server/model"
"search_server/pkg/common"
"search_server/pkg/config"
_ "search_server/pkg/gredis"
"search_server/pkg/gredis"
"search_server/pkg/mysql"
"strconv"
"strings"
"fmt"
"encoding/json"
)
//定义类名
type CommonLyService struct {
supplier_over_time map[string]int64
supplierId int64 //调用当前方法的供应商ID
supplierName string //调用当前方法的供应商名称
skuEsUpdataList []map[string]interface{} //组装批量更新es数据
SKU_UNIQUE_JUDGE string //
SPU_UNIQUE_JUDGE string //
BRAND_NAME_ALL string //
SUPPLIER_BRAND_ALL string //
BRAND string //
SKU string //
SPU string
SKU_RAW_MAP string
}
//关键词搜索过期时间
var supplier_over_time = map[string]int64{
"arrow": 3600,
"verical": 3600,
"mouser": 3600,
"master": 3600,
"tme": 3600,
"buerklin": 3600,
//初始化类
func (t *CommonLyService) LyServerRun(){
CommonLyService := new(CommonLyService)
CommonLyService.supplier_over_time = map[string]int64{
"arrow":3600,
"verical":3600,
"mouser":3600,
"master":3600,
"tme":3600,
"buerklin":3600,
}
//用到的redis键值
CommonLyService.SKU_UNIQUE_JUDGE = config.Get("redis_all.SKU_UNIQUE_JUDGE").String() //
CommonLyService.SPU_UNIQUE_JUDGE = config.Get("redis_all.SPU_UNIQUE_JUDGE").String() //
CommonLyService.BRAND_NAME_ALL = config.Get("redis_all.BRAND_NAME_ALL").String() //
CommonLyService.SUPPLIER_BRAND_ALL = config.Get("redis_all.SUPPLIER_BRAND_ALL").String() //
CommonLyService.BRAND = config.Get("redis_all.BRAND").String() //
CommonLyService.SKU = config.Get("redis_all.SKU").String() //
CommonLyService.SPU = config.Get("redis_all.SPU").String()
CommonLyService.SKU_RAW_MAP = config.Get("redis_all.SKU_RAW_MAP").String()
}
/*
......@@ -26,67 +57,180 @@ var supplier_over_time = map[string]int64{
@param goods_list 请求联营格式化后的数据
@param supplier_info 供应商商品详情
*/
func getSkuByGoodsSn(goods_list map[string]*model.LyClearGoodsList, supplier_info *model.SUPPLIER_REDIS_INFO_) map[string]interface{} {
//originGoods := make(map[string]interface{},0)
//
//for goods_sn, goods_list := range goods_list {
// gredis.HGet("")
//
// ladderPrice := make([]*model.TierItem, 0)
//
// productList[goodsSn] = &LyClearGoodsList
//}
//
//fmt.Println(productList)
//return productList
originGoods := make(map[string]interface{}, 0)
sku_uique_judge := config.Get("redis_all.SKU_UNIQUE_JUDGE").String()
for goods_sn, info := range goods_list {
sn_sku := php2go.Md5(strings.ToLower(goods_sn))
fmt.Println(sku_uique_judge, sn_sku)
//sku_id, _ := gredis.IchuntRedis.Hget(sku_uique_judge, sn_sku) //查询唯一值,反查sku_id
sku_id := ""
if sku_id == "" { //为空,先创建sku
//sku_id, _ := gredis.HGet(sku_uique_judge, sn_sku) //查询唯一值,反查sku_id
fmt.Println(sku_uique_judge, sn_sku)
sku_id := ""
if sku_id == "" { //为空,先创建sku
//lock_key := "searchapi_"+sn_sku;
//flag := gredis.Setnx(lock_key,php2go.Time()+2)
//if flag { //存在锁
//
//}
func (t *CommonLyService) GetSkuByGoodsSn(goodsList map[string]*model.LyClearGoodsList,supplierInfo *model.SUPPLIER_REDIS_INFO_) map[string]interface{}{
t.LyServerRun(); //初始化变量
redisRead := gredis.Conn("search_r")
defer redisRead.Close()
t.supplierId = supplierInfo.SupplierId
t.supplierName = supplierInfo.SupplierNickname
originGoods := make(map[string]interface{},0)
for goods_sn, info := range goodsList {
snSku := php2go.Md5(strings.ToLower(goods_sn))
skuId,_ := gredis.String(redisRead.Do("HGET",t.SKU_UNIQUE_JUDGE,snSku)) //查询唯一值,反查sku_id
var sku_flag bool = false; //是否新增或者更新db+redis,为true则新增
if skuId == "" { //为空,先创建sku
lock_key := "searchapi_"+snSku;
flag,_ := redis.Bool(redisRead.Do("SETNX", lock_key,php2go.Time()+2))
if flag { //不存在锁,直接新增
sku_flag = true
redisRead.Do("EXP",lock_key,2) //给锁有效时间2秒
//sku_id = t.writeSkuInfo(info)
}else{ //存在锁
}
print(info)
//productList[goodsSn] = &LyClearGoodsList
}
fmt.Println(originGoods)
return originGoods
print(info)
print(sku_flag)
//productList[goodsSn] = &LyClearGoodsList
}
return nil
fmt.Println(originGoods)
return originGoods
}
/*
新增或者更新redis
生成或者更新 sku信息
*/
func toRedis() {
func (t *CommonLyService) writeSkuInfo(skuInfo *model.LyClearGoodsList,skuId string,) {
redisWrite := gredis.Conn("search_w")
defer redisWrite.Close()
spuKey := common.GetKey(skuInfo.GoodsName+"_"+skuInfo.BrandName)
spuId,_ := gredis.String(redisWrite.Do("HGET",t.SKU_UNIQUE_JUDGE,spuKey))
if spuId == "" { //不存在spu,创建新的spu
spuId = t.writeSpuInfo(skuInfo)
}
if skuId == "" {
skuId = common.CreateId("sku");
}
inSkuInfo := model.LySkuInfo{
SpuId: spuId,
Encoded: "",
Moq: skuInfo.Moq,
Mpq: skuInfo.Increment,
OldGoodsId: 0,
GoodsType: 1,
GoodsStatus: 1,
BatchSn:"",
Stock:skuInfo.Stock,
HkDeliveryTime: "",
CnDeliveryTime: "",
LadderPrice: skuInfo.Tiered,
UpdateTime: php2go.Time(),
GoodsImages: "",
Canal: "",
SupplierId:t.supplierId,
}
jsonStr, _ := json.Marshal(inSkuInfo)
redisWrite.Do("HSET","sku",spuId,jsonStr)
skuKey := common.GetKey(skuInfo.GoodsSn+"_"+strconv.FormatInt(t.supplierId,10))
redisWrite.Do("HSET",t.SKU_UNIQUE_JUDGE,skuKey,skuId)
//todo 如果是digikey新增,需要插入原始映射表
if t.supplierId == 7 {
//redisWrite.Do("HSET",SKU_RAW_MAP,skuKey,skuId)
}
}
/*
推入队列
生成spu
*/
func toGoRabmq() {
func (t *CommonLyService) writeSpuInfo(skuInfo *model.LyClearGoodsList) string {
redisWrite := gredis.Conn("search_w")
defer redisWrite.Close()
brand_key := common.GetKey(strings.ToLower(skuInfo.BrandName))
brandId,_ := redis.Int64(redisWrite.Do("HGET", t.BRAND_NAME_ALL,brand_key))
if brandId == 0 {
brandId,_ = redis.Int64(redisWrite.Do("HGET",t.SUPPLIER_BRAND_ALL,brand_key))
if brandId == 0 {
brandId = t.writeBrandInfo(skuInfo)
}
}
spuId := common.CreateId("spu") //创建spu的id
Spuinfo := model.LySpuInfo{
ClassId1:0,
ClassId2:0,
ClassId3:0,
BrandId:brandId,
SpuName:skuInfo.GoodsName,
Status:1,
ImagesL:"",
Encap:"",
Pdf:"",
SpuBrief:"",
UpdateTime:php2go.Time(),
}
jsonStr, _ := json.Marshal(Spuinfo)
redisWrite.Do("HSET","spu",spuId,jsonStr)
spuKey := common.GetKey(skuInfo.GoodsName+"_"+skuInfo.BrandName)
redisWrite.Do("HSET",t.SPU_UNIQUE_JUDGE,spuKey,spuId)
return spuId
}
/*
生成品牌
*/
func (t *CommonLyService) writeBrandInfo(skuInfo *model.LyClearGoodsList) int64 {
var (
dbSpu = mysql.Conn("spu") //spu实例化链接
brandId int64 //品牌id
brandkey = common.GetKey(skuInfo.BrandName) //品牌唯一值
redisWrite = gredis.Conn("search_w")
)
defer redisWrite.Close()
has, err := dbSpu.Table("brand").Where("brand_name = ?", skuInfo.BrandName).Cols("id").Get(&brandId)
if err != nil {
fmt.Println(err) //查询错误
return 0
}
if has {//不存在品牌,则创建品牌
sql :="insert into brand(brand_name,create_time,insert_type) values (?, ?, ?)"
results, err := dbSpu.Exec(sql,skuInfo.BrandName, php2go.Time(),1)
if err != nil {
fmt.Println(err) //查询错误
return 0
}
brandId,_ = results.LastInsertId()
}
//更新redis 品牌数据
redisWrite.Do("HSET",t.BRAND_NAME_ALL,brandkey,brandId)
redisWrite.Do("HSET",t.BRAND,brandkey,brandId)
return brandId;
}
/*
组装推送到es数据
*/
func esSkuInfo(skuInfo *model.LyClearGoodsList) {
}
/*
推入队列
*/
func toGoRabmq() {
}
/*
更新es
更新es
*/
func toEs() {
func toEs() {
}
package service
import (
"fmt"
"github.com/gomodule/redigo/redis"
"github.com/imroc/req"
"github.com/syyongx/php2go"
......@@ -9,18 +8,30 @@ import (
"github.com/uniplaces/carbon"
"gopkg.in/olivere/elastic.v5"
"regexp"
"search_server/middleware"
"search_server/model"
"search_server/pkg/common"
"search_server/pkg/config"
"search_server/pkg/es"
"search_server/pkg/gredis"
"search_server/requests"
"search_server/service/transformer"
"strconv"
"strings"
)
//获取商品信息,需要传入userId用于判断是否登陆
func GetGoodsInfo(goodsIdsStr string, userId int) (goodsListMap map[string]*model.ApiGoods, err error) {
func GetGoodsInfo(goodsIds []string) (goodsListMap map[string]model.ApiGoods, err error) {
var userIdStr string
userIdStr, err = middleware.Context.Cookie("Yo4teW_uid")
if err != nil {
return
}
userId, err := strconv.Atoi(userIdStr)
if err != nil {
return
}
isNewCustomer, isMember := CheckIsNewCustomer(userId)
goodsIdsStr := strings.Join(goodsIds, ",")
params := req.Param{
"goods_id": goodsIdsStr,
"power[newCustomer]": isNewCustomer,
......@@ -31,67 +42,24 @@ func GetGoodsInfo(goodsIdsStr string, userId int) (goodsListMap map[string]*mode
}
//获取商品信息
func GetGoodsInfoByApi(goodsIdsStr string) (goodsList []*model.ApiGoods, err error) {
func GetGoodsInfoByApi(goodsIdsStr string) (goodsList []model.ApiGoods, err error) {
params := req.Param{
"goods_id": goodsIdsStr,
}
goodsList, _, err = CurlGoodsInfo(goodsIdsStr, params)
fmt.Println(goodsList[0].BrandId)
return
}
//处理商品信息数据
func DullGoodsInfo(keyword string, goodsListMap map[string]*model.ApiGoods) map[string]*model.ApiGoods {
//获取redis链接
redisCon := gredis.Conn("default_r")
defer redisCon.Close()
for key, goods := range goodsListMap {
fmt.Println(key)
fmt.Println(goods)
if goods.Mpq == 0 {
goods.Mpq = 1
}
if goods.GoodsName == "" {
goods.GoodsName = goods.SpuName
}
//goods_name_temp
if keyword != "" {
replaceString := "<b class='f-red'>" + strings.ToUpper(keyword) + "</b>"
goods.GoodsNameTemp = common.CaseInsensitiveReplace(goods.GoodsName, keyword, replaceString)
} else {
goods.GoodsNameTemp = goods.GoodsName
}
if goods.Mpq > goods.Moq {
goods.Multiple = goods.Moq
} else {
goods.Multiple = goods.Mpq
}
//te广告按钮
teSwitch, _ := redis.Int(redisCon.Do("GET", "TeSwitch"))
if goods.BrandId == 161 && goods.GoodsId != "1152755238555810539" && teSwitch == 2 {
goods.SearchSampleApplication = "https://www.te.com.cn/chn-zh/solutions/sg-sample-request-form.html?te_bu=Cor&te_type=other&te_campaign=ich_chn_cor-ich-chn-part-selectmktg-fy19-srp-sample_sma-431_10&elqCampaignId=32896"
goods.SearchContactExperts = "https://www.te.com.cn/chn-zh/solutions/connectivity.html?te_bu=Cor&te_type=other&te_campaign=ich_chn_cor-ich-chn-part-selectmktg-fy19-srp-contact_sma-431_11&elqCampaignId=32897"
}
//供应商信息,读取redis,来源于基石配置
}
return nil
}
//isMap:是否以字典形式返回值,默认是数组
func CurlGoodsInfo(goodsIdsStr string, params req.Param) (goodsList []*model.ApiGoods, goodsListMap map[string]*model.ApiGoods, err error) {
func CurlGoodsInfo(goodsIdsStr string, params req.Param) (goodsList []model.ApiGoods, goodsListMap map[string]model.ApiGoods, err error) {
//req.Debug = true
goodsServerUrl := config.Get("goods.api_url").String()
resp, err := req.Post(goodsServerUrl+"/synchronization", params)
if err != nil {
return
}
goodsListMap = make(map[string]*model.ApiGoods, 1000)
goodsListMap = make(map[string]model.ApiGoods, 1000)
//先判断返回的data是不是字典,不是字典代表可能是返回字符串了
if gjson.Get(resp.String(), "data").IsObject() {
//排序操作
......@@ -184,10 +152,10 @@ func CurlGoodsInfo(goodsIdsStr string, params req.Param) (goodsList []*model.Api
goods.Attrs = attrMap
//coefficient
goods.Coefficient.Cn = data.Get("coefficient.cn").String()
goods.Coefficient.Hk = data.Get("coefficient.hk").String()
goods.Coefficient.ExtraRatio = data.Get("coefficient.extra_ratio").String()
goods.Coefficient.Ratio = data.Get("coefficient.ratio").String()
goods.Coefficient.Cn = data.Get("coefficient.cn").Float()
goods.Coefficient.Hk = data.Get("coefficient.hk").Float()
goods.Coefficient.ExtraRatio = data.Get("coefficient.extra_ratio").Float()
goods.Coefficient.Ratio = data.Get("coefficient.ratio").Float()
goods.Coefficient.Tax = data.Get("coefficient.tax").Float()
//original_price
......@@ -213,10 +181,10 @@ func CurlGoodsInfo(goodsIdsStr string, params req.Param) (goodsList []*model.Api
goods.ScmBrand.ErpBrandId = data.Get("scm_brand.erp_brand_id").String()
goods.ScmBrand.ScmBrandId = data.Get("scm_brand.scm_brand_id").String()
goodsList = append(goodsList, &goods)
goodsListMap[goodsId] = &goods
goodsList = append(goodsList, goods)
goodsListMap[goodsId] = goods
} else {
goodsListMap[goodsId] = nil
goodsListMap[goodsId] = model.ApiGoods{}
}
}
}
......@@ -251,7 +219,7 @@ func CheckIsNewCustomer(userId int) (isNewCustomer, isMember bool) {
}
//根据供应商获取商品信息
func GetGoodsBySupplier(r requests.QuoteIndexRequest) (err error) {
func GetGoodsBySupplier(r requests.QuoteIndexRequest) (result map[string]interface{}, err error) {
//索引字典
supplierIndex := getSupplierIndex(r.SupplierId)
//获取查询条件
......@@ -259,13 +227,15 @@ func GetGoodsBySupplier(r requests.QuoteIndexRequest) (err error) {
queryString = ""
res, err := es.CurlES(supplierIndex, queryString)
goodsIds := GetGoodsIdsByEs(res)
//if err != nil {
// return err
//}
goodsIdsStr := strings.Join(goodsIds, ",")
goodsList, err := GetGoodsInfo(goodsIdsStr, 0)
fmt.Println(goodsList)
return nil
if err != nil {
return
}
goodsList, err := GetGoodsInfo(goodsIds)
dullData, err := transformer.DullDataInfo(r.Keyword, goodsList)
result = make(map[string]interface{})
result["data"] = dullData
result["total"] = gjson.Get(res, "hits.total").Int()
return result, nil
}
func getSupplierIndex(supplierId string) (supplierIndex string) {
......@@ -454,6 +424,11 @@ func getSupplierQuery(req requests.QuoteIndexRequest) (string, error) {
return searchRequest.Body()
}
//将供应商信息放到数据最外层,同时整合es相关数据
func getReturnSupplierData(dullData map[string]model.DullGoodsData) {
}
//根据es的结果获取goods_id列表
func GetGoodsIdsByEs(res string) (goodsIds []string) {
//直接用gjson去获取goods_id列表
......
......@@ -17,14 +17,14 @@ func NewMouserServiceImpl() *MouserServiceImpl {
}
//mouser请求外链
func OutLink(goodsName string,flag string) map[string]*model.LyClearGoodsList {
func OutLink(goodsName *string,flag string) map[string]*model.LyClearGoodsList {
var result string;
if flag == "-1" { //调试
result = `{"Errors":[],"SearchResults":{"NumberOfResult":80,"Parts":[{"DataSheetUrl":"","Description":"ON Semiconductor ANA DUAL OP AMP","FactoryStock":null,"ImagePath":null,"Category":"ON Semiconductor","LeadTime":"0 日數","LifecycleStatus":"","Manufacturer":"ON Semiconductor","ManufacturerPartNumber":"LM358","Min":"1","Mult":"1","MouserPartNumber":"N\/A","ProductAttributes":[],"PriceBreaks":[],"AlternatePackagings":null,"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/ON-Semiconductor\/LM358?qs=%252BEew9%252B0nqrA3vzUVqGGu%252Bw%3D%3D","Reeling":false,"ROHSStatus":"","SuggestedReplacement":"","MultiSimBlue":0,"RestrictionMessage":"Mouser目前不在您的地區出售本產品。","ProductCompliance":[{"ComplianceName":"USHTS","ComplianceValue":"8542390001"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"15242 有庫存","DataSheetUrl":"","Description":"運算放大器 - 運放器 1.2 MHz industry standard dual-channel amplifier with -40C to 85C operation 8-SOIC -40 to 85","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/texasinstruments\/images\/ITP_TI_SOIC-8_D_t.jpg","Category":"運算放大器 - 運放器","LeadTime":"42 日數","LifecycleStatus":"New Product","Manufacturer":"Texas Instruments","ManufacturerPartNumber":"LM358BIDR","Min":"1","Mult":"1","MouserPartNumber":"595-LM358BIDR","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Cut Tape"},{"AttributeName":"封裝","AttributeValue":"MouseReel"},{"AttributeName":"封裝","AttributeValue":"Reel"},{"AttributeName":"標準包裝數量","AttributeValue":"2500"}],"PriceBreaks":[{"Quantity":1,"Price":"$0.44","Currency":"USD"},{"Quantity":10,"Price":"$0.287","Currency":"USD"},{"Quantity":100,"Price":"$0.154","Currency":"USD"},{"Quantity":500,"Price":"$0.123","Currency":"USD"},{"Quantity":1000,"Price":"$0.095","Currency":"USD"},{"Quantity":2500,"Price":"$0.074","Currency":"USD"},{"Quantity":10000,"Price":"$0.066","Currency":"USD"},{"Quantity":25000,"Price":"$0.062","Currency":"USD"},{"Quantity":50000,"Price":"$0.058","Currency":"USD"}],"AlternatePackagings":null,"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/Texas-Instruments\/LM358BIDR?qs=byeeYqUIh0MUqg09TCRNgA%3D%3D","Reeling":true,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CNHTS","ComplianceValue":"8542339000"},{"ComplianceName":"USHTS","ComplianceValue":"8542330001"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"6503 有庫存","DataSheetUrl":"","Description":"運算放大器 - 運放器 Industry-standard dual operational amplifier 8-SOIC -40 to 125","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/texasinstruments\/images\/ITP_TI_SOIC-8_D_t.jpg","Category":"運算放大器 - 運放器","LeadTime":"56 日數","LifecycleStatus":"New Product","Manufacturer":"Texas Instruments","ManufacturerPartNumber":"LM358BAIDR","Min":"1","Mult":"1","MouserPartNumber":"595-LM358BAIDR","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Cut Tape"},{"AttributeName":"封裝","AttributeValue":"Reel"},{"AttributeName":"標準包裝數量","AttributeValue":"2500"}],"PriceBreaks":[{"Quantity":1,"Price":"$0.44","Currency":"USD"},{"Quantity":10,"Price":"$0.319","Currency":"USD"},{"Quantity":100,"Price":"$0.178","Currency":"USD"},{"Quantity":500,"Price":"$0.163","Currency":"USD"},{"Quantity":1000,"Price":"$0.123","Currency":"USD"},{"Quantity":2500,"Price":"$0.115","Currency":"USD"},{"Quantity":5000,"Price":"$0.108","Currency":"USD"},{"Quantity":10000,"Price":"$0.099","Currency":"USD"},{"Quantity":25000,"Price":"$0.095","Currency":"USD"}],"AlternatePackagings":null,"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/Texas-Instruments\/LM358BAIDR?qs=Cb2nCFKsA8q09dK1DPRIKg%3D%3D","Reeling":true,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CNHTS","ComplianceValue":"8542339000"},{"ComplianceName":"USHTS","ComplianceValue":"8542330001"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"5332 有庫存","DataSheetUrl":"","Description":"運算放大器 - 運放器 2-Channel industry-standard low-voltage operational amplifier 8-SOT-23-THIN -40 to 125","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/texasinstruments\/images\/ITP_TI_SOT-23-8_DCN_t.jpg","Category":"運算放大器 - 運放器","LeadTime":"92 日數","LifecycleStatus":"New Product","Manufacturer":"Texas Instruments","ManufacturerPartNumber":"LM358LVIDDFR","Min":"1","Mult":"1","MouserPartNumber":"595-LM358LVIDDFR","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Cut Tape"},{"AttributeName":"封裝","AttributeValue":"Reel"},{"AttributeName":"標準包裝數量","AttributeValue":"3000"}],"PriceBreaks":[{"Quantity":1,"Price":"$0.44","Currency":"USD"},{"Quantity":10,"Price":"$0.287","Currency":"USD"},{"Quantity":100,"Price":"$0.154","Currency":"USD"},{"Quantity":500,"Price":"$0.123","Currency":"USD"},{"Quantity":1000,"Price":"$0.095","Currency":"USD"},{"Quantity":3000,"Price":"$0.074","Currency":"USD"},{"Quantity":9000,"Price":"$0.066","Currency":"USD"},{"Quantity":24000,"Price":"$0.062","Currency":"USD"},{"Quantity":45000,"Price":"$0.058","Currency":"USD"}],"AlternatePackagings":null,"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/Texas-Instruments\/LM358LVIDDFR?qs=mAH9sUMRCtsP8n9aB6fXiA%3D%3D","Reeling":true,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CNHTS","ComplianceValue":"8542339000"},{"ComplianceName":"USHTS","ComplianceValue":"8542330001"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"3508 有庫存","DataSheetUrl":"","Description":"運算放大器 - 運放器 2-Channel industry-standard low-voltage operational amplifier 8-SOIC -40 to 125","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/texasinstruments\/images\/ITP_TI_SOIC-8_D_t.jpg","Category":"運算放大器 - 運放器","LeadTime":"42 日數","LifecycleStatus":"New Product","Manufacturer":"Texas Instruments","ManufacturerPartNumber":"LM358LVIDR","Min":"1","Mult":"1","MouserPartNumber":"595-LM358LVIDR","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Cut Tape"},{"AttributeName":"封裝","AttributeValue":"MouseReel"},{"AttributeName":"封裝","AttributeValue":"Reel"},{"AttributeName":"標準包裝數量","AttributeValue":"2500"}],"PriceBreaks":[{"Quantity":1,"Price":"$0.44","Currency":"USD"},{"Quantity":10,"Price":"$0.287","Currency":"USD"},{"Quantity":100,"Price":"$0.154","Currency":"USD"},{"Quantity":500,"Price":"$0.123","Currency":"USD"},{"Quantity":1000,"Price":"$0.095","Currency":"USD"},{"Quantity":2500,"Price":"$0.074","Currency":"USD"},{"Quantity":10000,"Price":"$0.066","Currency":"USD"},{"Quantity":25000,"Price":"$0.062","Currency":"USD"},{"Quantity":50000,"Price":"$0.058","Currency":"USD"}],"AlternatePackagings":null,"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/Texas-Instruments\/LM358LVIDR?qs=qSfuJ%252Bfl%2Fd53U%2FPkf9lZVw%3D%3D","Reeling":true,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CNHTS","ComplianceValue":"8542339000"},{"ComplianceName":"USHTS","ComplianceValue":"8542330001"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"12942 有庫存","DataSheetUrl":"","Description":"運算放大器 - 運放器 2-Channel industry-standard low-voltage operational amplifier 8-VSSOP -40 to 125","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/texasinstruments\/images\/ITP_TI_VSSOP-8_DGK_t.jpg","Category":"運算放大器 - 運放器","LeadTime":"42 日數","LifecycleStatus":"New Product","Manufacturer":"Texas Instruments","ManufacturerPartNumber":"LM358LVIDGKR","Min":"1","Mult":"1","MouserPartNumber":"595-LM358LVIDGKR","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Cut Tape"},{"AttributeName":"封裝","AttributeValue":"MouseReel"},{"AttributeName":"封裝","AttributeValue":"Reel"},{"AttributeName":"標準包裝數量","AttributeValue":"2500"}],"PriceBreaks":[{"Quantity":1,"Price":"$0.44","Currency":"USD"},{"Quantity":10,"Price":"$0.287","Currency":"USD"},{"Quantity":100,"Price":"$0.154","Currency":"USD"},{"Quantity":500,"Price":"$0.123","Currency":"USD"},{"Quantity":1000,"Price":"$0.095","Currency":"USD"},{"Quantity":2500,"Price":"$0.074","Currency":"USD"},{"Quantity":10000,"Price":"$0.066","Currency":"USD"},{"Quantity":25000,"Price":"$0.062","Currency":"USD"},{"Quantity":50000,"Price":"$0.058","Currency":"USD"}],"AlternatePackagings":null,"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/Texas-Instruments\/LM358LVIDGKR?qs=qSfuJ%252Bfl%2Fd44jzLuYglmWQ%3D%3D","Reeling":true,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CNHTS","ComplianceValue":"8542339000"},{"ComplianceName":"USHTS","ComplianceValue":"8542330001"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"8290 有庫存","DataSheetUrl":"","Description":"運算放大器 - 運放器 2-Channel industry-standard low-voltage operational amplifier 8-TSSOP -40 to 125","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/texasinstruments\/images\/ITP_TI_TSSOP-8_PW_t.jpg","Category":"運算放大器 - 運放器","LeadTime":"42 日數","LifecycleStatus":"New Product","Manufacturer":"Texas Instruments","ManufacturerPartNumber":"LM358LVIPWR","Min":"1","Mult":"1","MouserPartNumber":"595-LM358LVIPWR","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Cut Tape"},{"AttributeName":"封裝","AttributeValue":"MouseReel"},{"AttributeName":"封裝","AttributeValue":"Reel"},{"AttributeName":"標準包裝數量","AttributeValue":"2000"}],"PriceBreaks":[{"Quantity":1,"Price":"$0.44","Currency":"USD"},{"Quantity":10,"Price":"$0.287","Currency":"USD"},{"Quantity":100,"Price":"$0.154","Currency":"USD"},{"Quantity":500,"Price":"$0.123","Currency":"USD"},{"Quantity":1000,"Price":"$0.095","Currency":"USD"},{"Quantity":2000,"Price":"$0.074","Currency":"USD"},{"Quantity":10000,"Price":"$0.066","Currency":"USD"},{"Quantity":24000,"Price":"$0.062","Currency":"USD"},{"Quantity":50000,"Price":"$0.058","Currency":"USD"}],"AlternatePackagings":null,"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/Texas-Instruments\/LM358LVIPWR?qs=qSfuJ%252Bfl%2Fd4hjq17pEAnCQ%3D%3D","Reeling":true,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CNHTS","ComplianceValue":"8542319000"},{"ComplianceName":"USHTS","ComplianceValue":"8542330001"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"2310 有庫存","DataSheetUrl":"https:\/\/www.mouser.com\/datasheet\/2\/348\/lm358f-e-1807167.pdf","Description":"運算放大器 - 運放器 DUAL CH GRND SENSE OPER AMP","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/rohmsemiconductor\/images\/sop_j8_SPL.jpg","Category":"運算放大器 - 運放器","LeadTime":"182 日數","LifecycleStatus":"New Product","Manufacturer":"ROHM Semiconductor","ManufacturerPartNumber":"LM358FJ-GE2","Min":"1","Mult":"1","MouserPartNumber":"755-LM358FJ-GE2","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Cut Tape"},{"AttributeName":"封裝","AttributeValue":"MouseReel"},{"AttributeName":"封裝","AttributeValue":"Reel"},{"AttributeName":"標準包裝數量","AttributeValue":"2500"}],"PriceBreaks":[{"Quantity":1,"Price":"$0.59","Currency":"USD"},{"Quantity":10,"Price":"$0.469","Currency":"USD"},{"Quantity":100,"Price":"$0.282","Currency":"USD"},{"Quantity":1000,"Price":"$0.208","Currency":"USD"},{"Quantity":2500,"Price":"$0.189","Currency":"USD"}],"AlternatePackagings":null,"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/ROHM-Semiconductor\/LM358FJ-GE2?qs=HXFqYaX1Q2zCar6lKbJApg%3D%3D","Reeling":true,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"USHTS","ComplianceValue":"8542330001"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"2198 有庫存","DataSheetUrl":"https:\/\/www.mouser.com\/datasheet\/2\/348\/lm358f-e-1807167.pdf","Description":"運算放大器 - 運放器 DUAL GRND SENSE OPER AMP","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/rohmsemiconductor\/images\/ssop_b8_SPL.jpg","Category":"運算放大器 - 運放器","LeadTime":"182 日數","LifecycleStatus":"New Product","Manufacturer":"ROHM Semiconductor","ManufacturerPartNumber":"LM358FV-GE2","Min":"1","Mult":"1","MouserPartNumber":"755-LM358FV-GE2","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Cut Tape"},{"AttributeName":"封裝","AttributeValue":"MouseReel"},{"AttributeName":"封裝","AttributeValue":"Reel"},{"AttributeName":"標準包裝數量","AttributeValue":"2500"}],"PriceBreaks":[{"Quantity":1,"Price":"$0.59","Currency":"USD"},{"Quantity":10,"Price":"$0.469","Currency":"USD"},{"Quantity":100,"Price":"$0.282","Currency":"USD"},{"Quantity":1000,"Price":"$0.208","Currency":"USD"},{"Quantity":2500,"Price":"$0.189","Currency":"USD"}],"AlternatePackagings":null,"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/ROHM-Semiconductor\/LM358FV-GE2?qs=HXFqYaX1Q2xR2xgE3bpCFQ%3D%3D","Reeling":true,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"USHTS","ComplianceValue":"8542330001"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"2493 有庫存","DataSheetUrl":"https:\/\/www.mouser.com\/datasheet\/2\/348\/lm358f-e-1807167.pdf","Description":"運算放大器 - 運放器 Dual Grnd Sense Op Amp SOP8","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/rohmsemiconductor\/images\/sop8_di_SPL.jpg","Category":"運算放大器 - 運放器","LeadTime":"79 日數","LifecycleStatus":"","Manufacturer":"ROHM Semiconductor","ManufacturerPartNumber":"LM358F-GE2","Min":"1","Mult":"1","MouserPartNumber":"755-LM358F-GE2","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Cut Tape"},{"AttributeName":"封裝","AttributeValue":"MouseReel"},{"AttributeName":"封裝","AttributeValue":"Reel"},{"AttributeName":"標準包裝數量","AttributeValue":"2500"}],"PriceBreaks":[{"Quantity":1,"Price":"$0.59","Currency":"USD"},{"Quantity":10,"Price":"$0.469","Currency":"USD"},{"Quantity":100,"Price":"$0.282","Currency":"USD"},{"Quantity":1000,"Price":"$0.208","Currency":"USD"},{"Quantity":2500,"Price":"$0.189","Currency":"USD"}],"AlternatePackagings":null,"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/ROHM-Semiconductor\/LM358F-GE2?qs=4v%252BiZTmLVHGkumLF8qeRww%3D%3D","Reeling":true,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CAHTS","ComplianceValue":"8542310000"},{"ComplianceName":"CNHTS","ComplianceValue":"8542319000"},{"ComplianceName":"USHTS","ComplianceValue":"8542310001"},{"ComplianceName":"MXHTS","ComplianceValue":"85423102"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"3245 有庫存","DataSheetUrl":"https:\/\/www.mouser.com\/datasheet\/2\/348\/lm358f-e-1807167.pdf","Description":"運算放大器 - 運放器 Ind 2Ch 3-32V Ground Sense","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/rohmsemiconductor\/images\/msop8_SPL.jpg","Category":"運算放大器 - 運放器","LeadTime":"70 日數","LifecycleStatus":"","Manufacturer":"ROHM Semiconductor","ManufacturerPartNumber":"LM358FVM-GTR","Min":"1","Mult":"1","MouserPartNumber":"755-LM358FVM-GTR","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Cut Tape"},{"AttributeName":"封裝","AttributeValue":"MouseReel"},{"AttributeName":"封裝","AttributeValue":"Reel"},{"AttributeName":"標準包裝數量","AttributeValue":"3000"}],"PriceBreaks":[{"Quantity":1,"Price":"$0.59","Currency":"USD"},{"Quantity":10,"Price":"$0.469","Currency":"USD"},{"Quantity":100,"Price":"$0.282","Currency":"USD"},{"Quantity":1000,"Price":"$0.208","Currency":"USD"},{"Quantity":3000,"Price":"$0.198","Currency":"USD"},{"Quantity":9000,"Price":"$0.183","Currency":"USD"},{"Quantity":24000,"Price":"$0.178","Currency":"USD"},{"Quantity":45000,"Price":"$0.172","Currency":"USD"},{"Quantity":99000,"Price":"$0.167","Currency":"USD"}],"AlternatePackagings":null,"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/ROHM-Semiconductor\/LM358FVM-GTR?qs=4v%252BiZTmLVHFMjB7UQBtAiw%3D%3D","Reeling":true,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CAHTS","ComplianceValue":"8542330000"},{"ComplianceName":"CNHTS","ComplianceValue":"8542339000"},{"ComplianceName":"USHTS","ComplianceValue":"8542330001"},{"ComplianceName":"MXHTS","ComplianceValue":"85423301"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"1460 有庫存","DataSheetUrl":"https:\/\/www.mouser.com\/datasheet\/2\/348\/lm358f-e-1807167.pdf","Description":"運算放大器 - 運放器 Ind 2Ch 3-32V Ground Sense","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/rohmsemiconductor\/images\/tssop_b8j_SPL.jpg","Category":"運算放大器 - 運放器","LeadTime":"70 日數","LifecycleStatus":"","Manufacturer":"ROHM Semiconductor","ManufacturerPartNumber":"LM358FVJ-E2","Min":"1","Mult":"1","MouserPartNumber":"755-LM358FVJ-E2","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Cut Tape"},{"AttributeName":"封裝","AttributeValue":"MouseReel"},{"AttributeName":"封裝","AttributeValue":"Reel"},{"AttributeName":"標準包裝數量","AttributeValue":"2500"}],"PriceBreaks":[{"Quantity":1,"Price":"$0.59","Currency":"USD"},{"Quantity":10,"Price":"$0.469","Currency":"USD"},{"Quantity":100,"Price":"$0.282","Currency":"USD"},{"Quantity":1000,"Price":"$0.208","Currency":"USD"},{"Quantity":2500,"Price":"$0.189","Currency":"USD"},{"Quantity":10000,"Price":"$0.183","Currency":"USD"},{"Quantity":25000,"Price":"$0.178","Currency":"USD"},{"Quantity":50000,"Price":"$0.172","Currency":"USD"},{"Quantity":100000,"Price":"$0.167","Currency":"USD"}],"AlternatePackagings":null,"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/ROHM-Semiconductor\/LM358FVJ-E2?qs=4v%252BiZTmLVHEps3y6sLZQgg%3D%3D","Reeling":true,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CAHTS","ComplianceValue":"8542330000"},{"ComplianceName":"CNHTS","ComplianceValue":"8542319000"},{"ComplianceName":"USHTS","ComplianceValue":"8542330001"},{"ComplianceName":"MXHTS","ComplianceValue":"85423301"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"28609 有庫存","DataSheetUrl":"https:\/\/www.mouser.com\/datasheet\/2\/389\/cd00000464-1795379.pdf","Description":"運算放大器 - 運放器 Low Power DUAL OP 100 dB 1.1MHz 20nA","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/mouserelectronics\/images\/DFN_8_t.jpg","Category":"運算放大器 - 運放器","LeadTime":"84 日數","LifecycleStatus":"","Manufacturer":"STMicroelectronics","ManufacturerPartNumber":"LM358QT","Min":"1","Mult":"1","MouserPartNumber":"511-LM358QT","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Cut Tape"},{"AttributeName":"封裝","AttributeValue":"MouseReel"},{"AttributeName":"封裝","AttributeValue":"Reel"},{"AttributeName":"標準包裝數量","AttributeValue":"3000"}],"PriceBreaks":[{"Quantity":1,"Price":"$0.39","Currency":"USD"},{"Quantity":10,"Price":"$0.288","Currency":"USD"},{"Quantity":100,"Price":"$0.147","Currency":"USD"},{"Quantity":1000,"Price":"$0.11","Currency":"USD"},{"Quantity":3000,"Price":"$0.097","Currency":"USD"},{"Quantity":9000,"Price":"$0.089","Currency":"USD"},{"Quantity":24000,"Price":"$0.085","Currency":"USD"},{"Quantity":45000,"Price":"$0.083","Currency":"USD"},{"Quantity":99000,"Price":"$0.081","Currency":"USD"}],"AlternatePackagings":null,"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/STMicroelectronics\/LM358QT?qs=GkDVaEP5dcs4xwTXUtddog%3D%3D","Reeling":true,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CAHTS","ComplianceValue":"8542330090"},{"ComplianceName":"CNHTS","ComplianceValue":"8542339000"},{"ComplianceName":"USHTS","ComplianceValue":"8542330001"},{"ComplianceName":"JPHTS","ComplianceValue":"8542330996"},{"ComplianceName":"KRHTS","ComplianceValue":"8532331000"},{"ComplianceName":"MXHTS","ComplianceValue":"85423301"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"25668 有庫存","DataSheetUrl":"","Description":"運算放大器 - 運放器 Dual Op Amp","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/texasinstruments\/images\/ITP_TI_SOIC-8_D_t.jpg","Category":"運算放大器 - 運放器","LeadTime":"52 日數","LifecycleStatus":"","Manufacturer":"Texas Instruments","ManufacturerPartNumber":"LM358DR","Min":"1","Mult":"1","MouserPartNumber":"595-LM358DR","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Cut Tape"},{"AttributeName":"封裝","AttributeValue":"MouseReel"},{"AttributeName":"封裝","AttributeValue":"Reel"},{"AttributeName":"標準包裝數量","AttributeValue":"2500"}],"PriceBreaks":[{"Quantity":1,"Price":"$0.37","Currency":"USD"},{"Quantity":10,"Price":"$0.248","Currency":"USD"},{"Quantity":100,"Price":"$0.131","Currency":"USD"},{"Quantity":500,"Price":"$0.117","Currency":"USD"},{"Quantity":1000,"Price":"$0.09","Currency":"USD"},{"Quantity":2500,"Price":"$0.077","Currency":"USD"},{"Quantity":10000,"Price":"$0.07","Currency":"USD"},{"Quantity":25000,"Price":"$0.066","Currency":"USD"},{"Quantity":50000,"Price":"$0.063","Currency":"USD"}],"AlternatePackagings":[{"APMfrPN":"LM358D"},{"APMfrPN":" LM358DG4"},{"APMfrPN":" LM358DRG4"}],"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/Texas-Instruments\/LM358DR?qs=Zu35EjizYSSY6pJ37yjmHA%3D%3D","Reeling":true,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CAHTS","ComplianceValue":"8542330090"},{"ComplianceName":"CNHTS","ComplianceValue":"8542339000"},{"ComplianceName":"USHTS","ComplianceValue":"8542330001"},{"ComplianceName":"JPHTS","ComplianceValue":"8542330996"},{"ComplianceName":"KRHTS","ComplianceValue":"8532331000"},{"ComplianceName":"MXHTS","ComplianceValue":"85423399"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"176857 有庫存","DataSheetUrl":"","Description":"運算放大器 - 運放器 Dual Op Amp","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/texasinstruments\/images\/ITP_TI_SOIC-8_D_t.jpg","Category":"運算放大器 - 運放器","LeadTime":"42 日數","LifecycleStatus":"","Manufacturer":"Texas Instruments","ManufacturerPartNumber":"LM358ADR","Min":"1","Mult":"1","MouserPartNumber":"595-LM358ADR","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Cut Tape"},{"AttributeName":"封裝","AttributeValue":"MouseReel"},{"AttributeName":"封裝","AttributeValue":"Reel"},{"AttributeName":"標準包裝數量","AttributeValue":"2500"}],"PriceBreaks":[{"Quantity":1,"Price":"$0.41","Currency":"USD"},{"Quantity":10,"Price":"$0.276","Currency":"USD"},{"Quantity":100,"Price":"$0.146","Currency":"USD"},{"Quantity":500,"Price":"$0.13","Currency":"USD"},{"Quantity":1000,"Price":"$0.10","Currency":"USD"},{"Quantity":2500,"Price":"$0.085","Currency":"USD"},{"Quantity":10000,"Price":"$0.078","Currency":"USD"},{"Quantity":25000,"Price":"$0.073","Currency":"USD"},{"Quantity":50000,"Price":"$0.07","Currency":"USD"}],"AlternatePackagings":[{"APMfrPN":"LM358AD"},{"APMfrPN":" LM358ADG4"},{"APMfrPN":" LM358ADRG4"}],"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/Texas-Instruments\/LM358ADR?qs=1K8%2FAQHn5WQAbsqcc50i8g%3D%3D","Reeling":true,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CAHTS","ComplianceValue":"8542330090"},{"ComplianceName":"CNHTS","ComplianceValue":"8542339000"},{"ComplianceName":"USHTS","ComplianceValue":"8542330001"},{"ComplianceName":"JPHTS","ComplianceValue":"8542330996"},{"ComplianceName":"KRHTS","ComplianceValue":"8532331000"},{"ComplianceName":"MXHTS","ComplianceValue":"85423399"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"48531 有庫存","DataSheetUrl":"https:\/\/www.mouser.com\/datasheet\/2\/389\/cd00000464-1795379.pdf","Description":"運算放大器 - 運放器 Dual Low Power","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/mouserelectronics\/images\/SO_8_t.jpg","Category":"運算放大器 - 運放器","LeadTime":"42 日數","LifecycleStatus":"","Manufacturer":"STMicroelectronics","ManufacturerPartNumber":"LM358DT","Min":"1","Mult":"1","MouserPartNumber":"511-LM358DT","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Cut Tape"},{"AttributeName":"封裝","AttributeValue":"MouseReel"},{"AttributeName":"封裝","AttributeValue":"Reel"},{"AttributeName":"標準包裝數量","AttributeValue":"2500"}],"PriceBreaks":[{"Quantity":1,"Price":"$0.46","Currency":"USD"},{"Quantity":10,"Price":"$0.314","Currency":"USD"},{"Quantity":100,"Price":"$0.148","Currency":"USD"},{"Quantity":1000,"Price":"$0.114","Currency":"USD"},{"Quantity":2500,"Price":"$0.097","Currency":"USD"},{"Quantity":10000,"Price":"$0.088","Currency":"USD"},{"Quantity":25000,"Price":"$0.082","Currency":"USD"},{"Quantity":50000,"Price":"$0.074","Currency":"USD"},{"Quantity":100000,"Price":"$0.071","Currency":"USD"}],"AlternatePackagings":[{"APMfrPN":"LM358D"}],"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/STMicroelectronics\/LM358DT?qs=omvQGv%252BAfzDWfqgV6a5v9A%3D%3D","Reeling":true,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CAHTS","ComplianceValue":"8542330090"},{"ComplianceName":"CNHTS","ComplianceValue":"8542339000"},{"ComplianceName":"USHTS","ComplianceValue":"8542330001"},{"ComplianceName":"JPHTS","ComplianceValue":"8542330996"},{"ComplianceName":"KRHTS","ComplianceValue":"8532331000"},{"ComplianceName":"MXHTS","ComplianceValue":"85423399"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"15985 有庫存","DataSheetUrl":"","Description":"運算放大器 - 運放器 LOW PWR DUAL OP AMP","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/texasinstruments\/images\/ITP_TI_PDIP-8_P_t.jpg","Category":"運算放大器 - 運放器","LeadTime":"56 日數","LifecycleStatus":"","Manufacturer":"Texas Instruments","ManufacturerPartNumber":"LM358N\/NOPB","Min":"1","Mult":"1","MouserPartNumber":"926-LM358N\/NOPB","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Tube"},{"AttributeName":"標準包裝數量","AttributeValue":"40"}],"PriceBreaks":[{"Quantity":1,"Price":"$0.85","Currency":"USD"},{"Quantity":10,"Price":"$0.717","Currency":"USD"},{"Quantity":100,"Price":"$0.551","Currency":"USD"},{"Quantity":250,"Price":"$0.487","Currency":"USD"},{"Quantity":500,"Price":"$0.461","Currency":"USD"},{"Quantity":1000,"Price":"$0.359","Currency":"USD"},{"Quantity":2500,"Price":"$0.341","Currency":"USD"},{"Quantity":5000,"Price":"$0.328","Currency":"USD"},{"Quantity":10000,"Price":"$0.318","Currency":"USD"}],"AlternatePackagings":null,"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/Texas-Instruments\/LM358N-NOPB?qs=QbsRYf82W3GXbWt%2FvwDTcQ%3D%3D","Reeling":false,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CAHTS","ComplianceValue":"8542330090"},{"ComplianceName":"CNHTS","ComplianceValue":"8542339000"},{"ComplianceName":"USHTS","ComplianceValue":"8542330001"},{"ComplianceName":"JPHTS","ComplianceValue":"8542330996"},{"ComplianceName":"KRHTS","ComplianceValue":"8532331000"},{"ComplianceName":"MXHTS","ComplianceValue":"85423301"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"7497 有庫存","DataSheetUrl":"","Description":"運算放大器 - 運放器 LOW PWR DUAL OP AMP","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/texasinstruments\/images\/ITP_TI_SOIC-8_D_t.jpg","Category":"運算放大器 - 運放器","LeadTime":"48 日數","LifecycleStatus":"","Manufacturer":"Texas Instruments","ManufacturerPartNumber":"LM358MX\/NOPB","Min":"1","Mult":"1","MouserPartNumber":"926-LM358MX\/NOPB","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Cut Tape"},{"AttributeName":"封裝","AttributeValue":"MouseReel"},{"AttributeName":"封裝","AttributeValue":"Reel"},{"AttributeName":"標準包裝數量","AttributeValue":"2500"}],"PriceBreaks":[{"Quantity":1,"Price":"$0.86","Currency":"USD"},{"Quantity":10,"Price":"$0.711","Currency":"USD"},{"Quantity":100,"Price":"$0.539","Currency":"USD"},{"Quantity":250,"Price":"$0.458","Currency":"USD"},{"Quantity":500,"Price":"$0.436","Currency":"USD"},{"Quantity":1000,"Price":"$0.333","Currency":"USD"},{"Quantity":2500,"Price":"$0.31","Currency":"USD"},{"Quantity":5000,"Price":"$0.298","Currency":"USD"},{"Quantity":10000,"Price":"$0.287","Currency":"USD"}],"AlternatePackagings":[{"APMfrPN":"LM358M\/NOPB"}],"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/Texas-Instruments\/LM358MX-NOPB?qs=QbsRYf82W3Eh9BTjhMeuoQ%3D%3D","Reeling":true,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CAHTS","ComplianceValue":"8542330090"},{"ComplianceName":"CNHTS","ComplianceValue":"8542339000"},{"ComplianceName":"USHTS","ComplianceValue":"8542330001"},{"ComplianceName":"JPHTS","ComplianceValue":"8542330996"},{"ComplianceName":"KRHTS","ComplianceValue":"8532331000"},{"ComplianceName":"MXHTS","ComplianceValue":"85423301"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"11756 有庫存","DataSheetUrl":"","Description":"運算放大器 - 運放器 LOW PWR DUAL OP AMP","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/texasinstruments\/images\/ITP_TI_SOIC-8_D_t.jpg","Category":"運算放大器 - 運放器","LeadTime":"42 日數","LifecycleStatus":"","Manufacturer":"Texas Instruments","ManufacturerPartNumber":"LM358AMX\/NOPB","Min":"1","Mult":"1","MouserPartNumber":"926-LM358AMX\/NOPB","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Cut Tape"},{"AttributeName":"封裝","AttributeValue":"MouseReel"},{"AttributeName":"封裝","AttributeValue":"Reel"},{"AttributeName":"標準包裝數量","AttributeValue":"2500"}],"PriceBreaks":[{"Quantity":1,"Price":"$0.90","Currency":"USD"},{"Quantity":10,"Price":"$0.738","Currency":"USD"},{"Quantity":100,"Price":"$0.56","Currency":"USD"},{"Quantity":250,"Price":"$0.476","Currency":"USD"},{"Quantity":500,"Price":"$0.453","Currency":"USD"},{"Quantity":1000,"Price":"$0.346","Currency":"USD"},{"Quantity":2500,"Price":"$0.322","Currency":"USD"},{"Quantity":5000,"Price":"$0.31","Currency":"USD"},{"Quantity":10000,"Price":"$0.298","Currency":"USD"}],"AlternatePackagings":[{"APMfrPN":"LM358AM\/NOPB"}],"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/Texas-Instruments\/LM358AMX-NOPB?qs=QbsRYf82W3GCS6w419KcQg%3D%3D","Reeling":true,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CAHTS","ComplianceValue":"8542330090"},{"ComplianceName":"CNHTS","ComplianceValue":"8542339000"},{"ComplianceName":"USHTS","ComplianceValue":"8542330001"},{"ComplianceName":"JPHTS","ComplianceValue":"8542330996"},{"ComplianceName":"KRHTS","ComplianceValue":"8532331000"},{"ComplianceName":"MXHTS","ComplianceValue":"85423301"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"3507 有庫存","DataSheetUrl":"https:\/\/www.mouser.com\/datasheet\/2\/389\/cd00000464-1795379.pdf","Description":"運算放大器 - 運放器 Dual Low Power","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/mouserelectronics\/images\/SO_8_t.jpg","Category":"運算放大器 - 運放器","LeadTime":"175 日數","LifecycleStatus":"","Manufacturer":"STMicroelectronics","ManufacturerPartNumber":"LM358D","Min":"1","Mult":"1","MouserPartNumber":"511-LM358D","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Tube"},{"AttributeName":"標準包裝數量","AttributeValue":"2000"}],"PriceBreaks":[{"Quantity":1,"Price":"$2.65","Currency":"USD"},{"Quantity":10,"Price":"$2.24","Currency":"USD"},{"Quantity":100,"Price":"$1.84","Currency":"USD"},{"Quantity":250,"Price":"$1.65","Currency":"USD"},{"Quantity":500,"Price":"$1.60","Currency":"USD"},{"Quantity":1000,"Price":"$1.36","Currency":"USD"},{"Quantity":2000,"Price":"$1.32","Currency":"USD"},{"Quantity":4000,"Price":"$1.28","Currency":"USD"},{"Quantity":10000,"Price":"$1.25","Currency":"USD"}],"AlternatePackagings":null,"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/STMicroelectronics\/LM358D?qs=4kXaGCtSlT3mFye4RVsPfA%3D%3D","Reeling":false,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CAHTS","ComplianceValue":"8542330090"},{"ComplianceName":"CNHTS","ComplianceValue":"8542339000"},{"ComplianceName":"USHTS","ComplianceValue":"8542330001"},{"ComplianceName":"JPHTS","ComplianceValue":"8542330996"},{"ComplianceName":"KRHTS","ComplianceValue":"8532331000"},{"ComplianceName":"MXHTS","ComplianceValue":"85423399"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"453 有庫存","DataSheetUrl":"","Description":"運算放大器 - 運放器 Low Power Dual Operational Amplifier 8-TO-99 0 to 70","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/texasinstruments\/images\/ITP_TI_TO-99-8_LMC_t.jpg","Category":"運算放大器 - 運放器","LeadTime":"42 日數","LifecycleStatus":"","Manufacturer":"Texas Instruments","ManufacturerPartNumber":"LM358H\/NOPB","Min":"1","Mult":"1","MouserPartNumber":"926-LM358H\/NOPB","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Bulk"},{"AttributeName":"標準包裝數量","AttributeValue":"500"}],"PriceBreaks":[{"Quantity":1,"Price":"$8.63","Currency":"USD"},{"Quantity":10,"Price":"$7.80","Currency":"USD"},{"Quantity":25,"Price":"$7.43","Currency":"USD"},{"Quantity":100,"Price":"$6.17","Currency":"USD"},{"Quantity":250,"Price":"$5.62","Currency":"USD"},{"Quantity":500,"Price":"$5.26","Currency":"USD"},{"Quantity":1000,"Price":"$4.72","Currency":"USD"},{"Quantity":2500,"Price":"$4.53","Currency":"USD"},{"Quantity":5000,"Price":"$4.46","Currency":"USD"}],"AlternatePackagings":null,"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/Texas-Instruments\/LM358H-NOPB?qs=QbsRYf82W3FdMvUTJaAjvw%3D%3D","Reeling":false,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CAHTS","ComplianceValue":"8542330090"},{"ComplianceName":"CNHTS","ComplianceValue":"8542319000"},{"ComplianceName":"USHTS","ComplianceValue":"8542390001"},{"ComplianceName":"JPHTS","ComplianceValue":"8542330996"},{"ComplianceName":"KRHTS","ComplianceValue":"8532331000"},{"ComplianceName":"MXHTS","ComplianceValue":"85423301"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"5769 有庫存","DataSheetUrl":"","Description":"運算放大器 - 運放器 Dual General-Purpose Op Amp","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/texasinstruments\/images\/ITP_TI_TSSOP-8_PW_t.jpg","Category":"運算放大器 - 運放器","LeadTime":"42 日數","LifecycleStatus":"","Manufacturer":"Texas Instruments","ManufacturerPartNumber":"LM358PWRG4","Min":"1","Mult":"1","MouserPartNumber":"595-LM358PWRG4","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Cut Tape"},{"AttributeName":"封裝","AttributeValue":"MouseReel"},{"AttributeName":"封裝","AttributeValue":"Reel"},{"AttributeName":"標準包裝數量","AttributeValue":"2000"}],"PriceBreaks":[{"Quantity":1,"Price":"$0.38","Currency":"USD"},{"Quantity":10,"Price":"$0.276","Currency":"USD"},{"Quantity":100,"Price":"$0.154","Currency":"USD"},{"Quantity":500,"Price":"$0.141","Currency":"USD"},{"Quantity":1000,"Price":"$0.106","Currency":"USD"},{"Quantity":2000,"Price":"$0.10","Currency":"USD"},{"Quantity":4000,"Price":"$0.093","Currency":"USD"},{"Quantity":10000,"Price":"$0.086","Currency":"USD"},{"Quantity":24000,"Price":"$0.082","Currency":"USD"}],"AlternatePackagings":[{"APMfrPN":"LM358PW"},{"APMfrPN":" LM358PWR"}],"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/Texas-Instruments\/LM358PWRG4?qs=VBduBm9rCJSf3wn%252BAu5Duw%3D%3D","Reeling":true,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CAHTS","ComplianceValue":"8542330090"},{"ComplianceName":"CNHTS","ComplianceValue":"8542319000"},{"ComplianceName":"USHTS","ComplianceValue":"8542330001"},{"ComplianceName":"JPHTS","ComplianceValue":"8542330996"},{"ComplianceName":"KRHTS","ComplianceValue":"8532331000"},{"ComplianceName":"MXHTS","ComplianceValue":"85423399"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"2000 有庫存","DataSheetUrl":"https:\/\/www.mouser.com\/datasheet\/2\/50\/ELM 3-880328.pdf","Description":"LED安裝硬體 LED Mount Self Ret 5mm Black .580 inch","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/bivar\/images\/elm 3-200_750.jpg","Category":"LED安裝硬體","LeadTime":"0 日數","LifecycleStatus":"","Manufacturer":"Bivar","ManufacturerPartNumber":"ELM 3-580","Min":"1","Mult":"1","MouserPartNumber":"749-ELM-3-580","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Bulk"},{"AttributeName":"標準包裝數量","AttributeValue":"1000"}],"PriceBreaks":[{"Quantity":1,"Price":"$0.40","Currency":"USD"},{"Quantity":10,"Price":"$0.291","Currency":"USD"},{"Quantity":100,"Price":"$0.09","Currency":"USD"},{"Quantity":1000,"Price":"$0.074","Currency":"USD"},{"Quantity":2000,"Price":"$0.058","Currency":"USD"},{"Quantity":10000,"Price":"$0.052","Currency":"USD"},{"Quantity":25000,"Price":"$0.048","Currency":"USD"},{"Quantity":50000,"Price":"$0.046","Currency":"USD"},{"Quantity":100000,"Price":"$0.045","Currency":"USD"}],"AlternatePackagings":null,"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/Bivar\/ELM-3-580?qs=RaByzyhmEWiahD9Ph54ezQ%3D%3D","Reeling":false,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CAHTS","ComplianceValue":"8547200000"},{"ComplianceName":"CNHTS","ComplianceValue":"8547200000"},{"ComplianceName":"USHTS","ComplianceValue":"8547200000"},{"ComplianceName":"TARIC","ComplianceValue":"8547200090"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"2000 有庫存","DataSheetUrl":"https:\/\/www.mouser.com\/datasheet\/2\/50\/ELM 3-880328.pdf","Description":"LED安裝硬體 LED Mount Self Ret 5mm Black .585 inch","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/bivar\/images\/elm 3-200_750.jpg","Category":"LED安裝硬體","LeadTime":"0 日數","LifecycleStatus":"","Manufacturer":"Bivar","ManufacturerPartNumber":"ELM 3-585","Min":"1","Mult":"1","MouserPartNumber":"749-ELM-3-585","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Bulk"},{"AttributeName":"標準包裝數量","AttributeValue":"1000"}],"PriceBreaks":[{"Quantity":1,"Price":"$0.40","Currency":"USD"},{"Quantity":10,"Price":"$0.291","Currency":"USD"},{"Quantity":100,"Price":"$0.09","Currency":"USD"},{"Quantity":1000,"Price":"$0.074","Currency":"USD"},{"Quantity":2000,"Price":"$0.058","Currency":"USD"},{"Quantity":10000,"Price":"$0.052","Currency":"USD"},{"Quantity":25000,"Price":"$0.048","Currency":"USD"},{"Quantity":50000,"Price":"$0.046","Currency":"USD"},{"Quantity":100000,"Price":"$0.045","Currency":"USD"}],"AlternatePackagings":null,"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/Bivar\/ELM-3-585?qs=RaByzyhmEWgRx9BWsSvOyw%3D%3D","Reeling":false,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CAHTS","ComplianceValue":"8547200000"},{"ComplianceName":"CNHTS","ComplianceValue":"8547200000"},{"ComplianceName":"USHTS","ComplianceValue":"8547200000"},{"ComplianceName":"TARIC","ComplianceValue":"8547200090"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"6343 有庫存","DataSheetUrl":"","Description":"運算放大器 - 運放器 Dual General-Purpose Op Amp","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/texasinstruments\/images\/ITP_TI_VSSOP-8_DGK_t.jpg","Category":"運算放大器 - 運放器","LeadTime":"42 日數","LifecycleStatus":"","Manufacturer":"Texas Instruments","ManufacturerPartNumber":"LM358DGKR","Min":"1","Mult":"1","MouserPartNumber":"595-LM358DGKR","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Cut Tape"},{"AttributeName":"封裝","AttributeValue":"MouseReel"},{"AttributeName":"封裝","AttributeValue":"Reel"},{"AttributeName":"標準包裝數量","AttributeValue":"2500"}],"PriceBreaks":[{"Quantity":1,"Price":"$0.35","Currency":"USD"},{"Quantity":10,"Price":"$0.258","Currency":"USD"},{"Quantity":100,"Price":"$0.144","Currency":"USD"},{"Quantity":500,"Price":"$0.132","Currency":"USD"},{"Quantity":1000,"Price":"$0.099","Currency":"USD"},{"Quantity":2500,"Price":"$0.093","Currency":"USD"},{"Quantity":5000,"Price":"$0.087","Currency":"USD"},{"Quantity":10000,"Price":"$0.08","Currency":"USD"},{"Quantity":25000,"Price":"$0.077","Currency":"USD"}],"AlternatePackagings":[{"APMfrPN":"LM358DGKRG4"}],"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/Texas-Instruments\/LM358DGKR?qs=VBduBm9rCJQpfL21a%2FCtGg%3D%3D","Reeling":true,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CAHTS","ComplianceValue":"8542330090"},{"ComplianceName":"CNHTS","ComplianceValue":"8542339000"},{"ComplianceName":"USHTS","ComplianceValue":"8542330001"},{"ComplianceName":"JPHTS","ComplianceValue":"8542330996"},{"ComplianceName":"KRHTS","ComplianceValue":"8532331000"},{"ComplianceName":"MXHTS","ComplianceValue":"85423399"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"2889 有庫存","DataSheetUrl":"","Description":"運算放大器 - 運放器 Dual Op Amp","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/texasinstruments\/images\/ITP_TI_TSSOP-8_PW_t.jpg","Category":"運算放大器 - 運放器","LeadTime":"42 日數","LifecycleStatus":"","Manufacturer":"Texas Instruments","ManufacturerPartNumber":"LM358PWR","Min":"1","Mult":"1","MouserPartNumber":"595-LM358PWR","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Cut Tape"},{"AttributeName":"封裝","AttributeValue":"MouseReel"},{"AttributeName":"封裝","AttributeValue":"Reel"},{"AttributeName":"標準包裝數量","AttributeValue":"2000"}],"PriceBreaks":[{"Quantity":1,"Price":"$0.35","Currency":"USD"},{"Quantity":10,"Price":"$0.258","Currency":"USD"},{"Quantity":100,"Price":"$0.144","Currency":"USD"},{"Quantity":500,"Price":"$0.132","Currency":"USD"},{"Quantity":1000,"Price":"$0.099","Currency":"USD"},{"Quantity":2000,"Price":"$0.093","Currency":"USD"},{"Quantity":4000,"Price":"$0.087","Currency":"USD"},{"Quantity":10000,"Price":"$0.08","Currency":"USD"},{"Quantity":24000,"Price":"$0.077","Currency":"USD"}],"AlternatePackagings":[{"APMfrPN":"LM358PW"},{"APMfrPN":" LM358PWRG4"}],"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/Texas-Instruments\/LM358PWR?qs=8yeEWhuAOtNCy5zXFreuYg%3D%3D","Reeling":true,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CAHTS","ComplianceValue":"8542330090"},{"ComplianceName":"CNHTS","ComplianceValue":"8542339000"},{"ComplianceName":"USHTS","ComplianceValue":"8542330001"},{"ComplianceName":"JPHTS","ComplianceValue":"8542330996"},{"ComplianceName":"KRHTS","ComplianceValue":"8532331000"},{"ComplianceName":"MXHTS","ComplianceValue":"85423399"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"5072 有庫存","DataSheetUrl":"","Description":"運算放大器 - 運放器 Dual Operational Amplifier","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/texasinstruments\/images\/ITP_TI_SOIC-8_D_t.jpg","Category":"運算放大器 - 運放器","LeadTime":"42 日數","LifecycleStatus":"","Manufacturer":"Texas Instruments","ManufacturerPartNumber":"LM358ADRG4","Min":"1","Mult":"1","MouserPartNumber":"595-LM358ADRG4","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Cut Tape"},{"AttributeName":"封裝","AttributeValue":"MouseReel"},{"AttributeName":"封裝","AttributeValue":"Reel"},{"AttributeName":"標準包裝數量","AttributeValue":"2500"}],"PriceBreaks":[{"Quantity":1,"Price":"$0.36","Currency":"USD"},{"Quantity":10,"Price":"$0.263","Currency":"USD"},{"Quantity":100,"Price":"$0.147","Currency":"USD"},{"Quantity":500,"Price":"$0.135","Currency":"USD"},{"Quantity":1000,"Price":"$0.101","Currency":"USD"},{"Quantity":2500,"Price":"$0.095","Currency":"USD"},{"Quantity":5000,"Price":"$0.089","Currency":"USD"},{"Quantity":10000,"Price":"$0.082","Currency":"USD"},{"Quantity":25000,"Price":"$0.079","Currency":"USD"}],"AlternatePackagings":[{"APMfrPN":"LM358AD"},{"APMfrPN":" LM358ADG4"},{"APMfrPN":" LM358ADR"}],"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/Texas-Instruments\/LM358ADRG4?qs=VBduBm9rCJSf%252BFo0zoS%252BXw%3D%3D","Reeling":true,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CAHTS","ComplianceValue":"8542330090"},{"ComplianceName":"CNHTS","ComplianceValue":"8542339000"},{"ComplianceName":"USHTS","ComplianceValue":"8542330001"},{"ComplianceName":"JPHTS","ComplianceValue":"8542330996"},{"ComplianceName":"KRHTS","ComplianceValue":"8532331000"},{"ComplianceName":"MXHTS","ComplianceValue":"85423399"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"6275 有庫存","DataSheetUrl":"https:\/\/www.mouser.com\/datasheet\/2\/389\/cd00000464-1795379.pdf","Description":"運算放大器 - 運放器 Dual Low Power","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/stmicroelectronics\/images\/MiniSO-8_SPL.JPG","Category":"運算放大器 - 運放器","LeadTime":"84 日數","LifecycleStatus":"","Manufacturer":"STMicroelectronics","ManufacturerPartNumber":"LM358ST","Min":"1","Mult":"1","MouserPartNumber":"511-LM358S","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Cut Tape"},{"AttributeName":"封裝","AttributeValue":"Reel"},{"AttributeName":"標準包裝數量","AttributeValue":"4000"}],"PriceBreaks":[{"Quantity":1,"Price":"$0.39","Currency":"USD"},{"Quantity":10,"Price":"$0.288","Currency":"USD"},{"Quantity":100,"Price":"$0.147","Currency":"USD"},{"Quantity":1000,"Price":"$0.11","Currency":"USD"},{"Quantity":4000,"Price":"$0.097","Currency":"USD"},{"Quantity":8000,"Price":"$0.089","Currency":"USD"},{"Quantity":24000,"Price":"$0.085","Currency":"USD"},{"Quantity":48000,"Price":"$0.083","Currency":"USD"},{"Quantity":100000,"Price":"$0.082","Currency":"USD"}],"AlternatePackagings":null,"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/STMicroelectronics\/LM358ST?qs=PFToyzIRtRHkOlg3W0t0FA%3D%3D","Reeling":true,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CAHTS","ComplianceValue":"8542330090"},{"ComplianceName":"CNHTS","ComplianceValue":"8542339000"},{"ComplianceName":"USHTS","ComplianceValue":"8542330001"},{"ComplianceName":"JPHTS","ComplianceValue":"8542330996"},{"ComplianceName":"KRHTS","ComplianceValue":"8532331000"},{"ComplianceName":"MXHTS","ComplianceValue":"85423399"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"6832 有庫存","DataSheetUrl":"","Description":"運算放大器 - 運放器 Dual Operational Amplifier","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/texasinstruments\/images\/ITP_TI_TSSOP-8_PW_t.jpg","Category":"運算放大器 - 運放器","LeadTime":"42 日數","LifecycleStatus":"","Manufacturer":"Texas Instruments","ManufacturerPartNumber":"LM358APWR","Min":"1","Mult":"1","MouserPartNumber":"595-LM358APWR","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Cut Tape"},{"AttributeName":"封裝","AttributeValue":"MouseReel"},{"AttributeName":"封裝","AttributeValue":"Reel"},{"AttributeName":"標準包裝數量","AttributeValue":"2000"}],"PriceBreaks":[{"Quantity":1,"Price":"$0.39","Currency":"USD"},{"Quantity":10,"Price":"$0.284","Currency":"USD"},{"Quantity":100,"Price":"$0.159","Currency":"USD"},{"Quantity":500,"Price":"$0.146","Currency":"USD"},{"Quantity":1000,"Price":"$0.109","Currency":"USD"},{"Quantity":2000,"Price":"$0.103","Currency":"USD"},{"Quantity":4000,"Price":"$0.096","Currency":"USD"},{"Quantity":10000,"Price":"$0.088","Currency":"USD"},{"Quantity":24000,"Price":"$0.085","Currency":"USD"}],"AlternatePackagings":[{"APMfrPN":"LM358APW"},{"APMfrPN":" LM358APWRG4"}],"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/Texas-Instruments\/LM358APWR?qs=VBduBm9rCJSLT6bW7wCvKw%3D%3D","Reeling":true,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CAHTS","ComplianceValue":"8542330090"},{"ComplianceName":"CNHTS","ComplianceValue":"8542339000"},{"ComplianceName":"USHTS","ComplianceValue":"8542330001"},{"ComplianceName":"JPHTS","ComplianceValue":"8542330996"},{"ComplianceName":"KRHTS","ComplianceValue":"8532331000"},{"ComplianceName":"MXHTS","ComplianceValue":"85423399"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"4844 有庫存","DataSheetUrl":"https:\/\/www.mouser.com\/datasheet\/2\/308\/LM358-D-1634144.pdf","Description":"運算放大器 - 運放器 3-32V dual improved VIO Commercial Temp","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/mouserelectronics\/images\/SOIC_8_t.jpg","Category":"運算放大器 - 運放器","LeadTime":"51 日數","LifecycleStatus":"","Manufacturer":"ON Semiconductor","ManufacturerPartNumber":"LM358ADR2G","Min":"1","Mult":"1","MouserPartNumber":"863-LM358ADR2G","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Cut Tape"},{"AttributeName":"封裝","AttributeValue":"MouseReel"},{"AttributeName":"封裝","AttributeValue":"Reel"},{"AttributeName":"標準包裝數量","AttributeValue":"2500"}],"PriceBreaks":[{"Quantity":1,"Price":"$0.40","Currency":"USD"},{"Quantity":10,"Price":"$0.27","Currency":"USD"},{"Quantity":100,"Price":"$0.127","Currency":"USD"},{"Quantity":1000,"Price":"$0.098","Currency":"USD"},{"Quantity":2500,"Price":"$0.083","Currency":"USD"},{"Quantity":10000,"Price":"$0.076","Currency":"USD"},{"Quantity":25000,"Price":"$0.071","Currency":"USD"},{"Quantity":50000,"Price":"$0.068","Currency":"USD"},{"Quantity":100000,"Price":"$0.062","Currency":"USD"}],"AlternatePackagings":null,"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/ON-Semiconductor\/LM358ADR2G?qs=HEOlnOCGiuJfsoeLY%252BqMsw%3D%3D","Reeling":true,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CAHTS","ComplianceValue":"8542390000"},{"ComplianceName":"CNHTS","ComplianceValue":"8542339000"},{"ComplianceName":"USHTS","ComplianceValue":"8542330001"},{"ComplianceName":"JPHTS","ComplianceValue":"8542390990"},{"ComplianceName":"MXHTS","ComplianceValue":"85423999"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"4142 有庫存","DataSheetUrl":"","Description":"運算放大器 - 運放器 Dual Linear","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/texasinstruments\/images\/ITP_TI_SOIC-8_D_t.jpg","Category":"運算放大器 - 運放器","LeadTime":"42 日數","LifecycleStatus":"","Manufacturer":"Texas Instruments","ManufacturerPartNumber":"LM358D","Min":"1","Mult":"1","MouserPartNumber":"595-LM358D","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Tube"},{"AttributeName":"標準包裝數量","AttributeValue":"75"}],"PriceBreaks":[{"Quantity":1,"Price":"$0.41","Currency":"USD"},{"Quantity":10,"Price":"$0.301","Currency":"USD"},{"Quantity":100,"Price":"$0.168","Currency":"USD"},{"Quantity":500,"Price":"$0.154","Currency":"USD"},{"Quantity":1000,"Price":"$0.116","Currency":"USD"},{"Quantity":2500,"Price":"$0.109","Currency":"USD"},{"Quantity":5000,"Price":"$0.102","Currency":"USD"},{"Quantity":10000,"Price":"$0.094","Currency":"USD"},{"Quantity":25000,"Price":"$0.09","Currency":"USD"}],"AlternatePackagings":[{"APMfrPN":"LM358DG4"},{"APMfrPN":" LM358DR"},{"APMfrPN":" LM358DRG4"}],"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/Texas-Instruments\/LM358D?qs=X1HXWTtiZ0RJBM%2FvBfVo8g%3D%3D","Reeling":false,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CAHTS","ComplianceValue":"8542330090"},{"ComplianceName":"CNHTS","ComplianceValue":"8542339000"},{"ComplianceName":"USHTS","ComplianceValue":"8542330001"},{"ComplianceName":"JPHTS","ComplianceValue":"8542330996"},{"ComplianceName":"KRHTS","ComplianceValue":"8532331000"},{"ComplianceName":"MXHTS","ComplianceValue":"85423399"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"10204 有庫存","DataSheetUrl":"","Description":"運算放大器 - 運放器 Dual Operational Amplifier","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/texasinstruments\/images\/ITP_TI_VSSOP-8_DGK_t.jpg","Category":"運算放大器 - 運放器","LeadTime":"56 日數","LifecycleStatus":"","Manufacturer":"Texas Instruments","ManufacturerPartNumber":"LM358ADGKR","Min":"1","Mult":"1","MouserPartNumber":"595-LM358ADGKR","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Cut Tape"},{"AttributeName":"封裝","AttributeValue":"MouseReel"},{"AttributeName":"封裝","AttributeValue":"Reel"},{"AttributeName":"標準包裝數量","AttributeValue":"2500"}],"PriceBreaks":[{"Quantity":1,"Price":"$0.41","Currency":"USD"},{"Quantity":10,"Price":"$0.276","Currency":"USD"},{"Quantity":100,"Price":"$0.146","Currency":"USD"},{"Quantity":500,"Price":"$0.13","Currency":"USD"},{"Quantity":1000,"Price":"$0.10","Currency":"USD"},{"Quantity":2500,"Price":"$0.085","Currency":"USD"},{"Quantity":10000,"Price":"$0.078","Currency":"USD"},{"Quantity":25000,"Price":"$0.073","Currency":"USD"},{"Quantity":50000,"Price":"$0.07","Currency":"USD"}],"AlternatePackagings":[{"APMfrPN":"LM358ADGKRG4"}],"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/Texas-Instruments\/LM358ADGKR?qs=VBduBm9rCJR9ktV5H5OEpA%3D%3D","Reeling":true,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CAHTS","ComplianceValue":"8542330090"},{"ComplianceName":"CNHTS","ComplianceValue":"8542339000"},{"ComplianceName":"USHTS","ComplianceValue":"8542330001"},{"ComplianceName":"JPHTS","ComplianceValue":"8542330996"},{"ComplianceName":"KRHTS","ComplianceValue":"8532331000"},{"ComplianceName":"MXHTS","ComplianceValue":"85423399"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"10515 有庫存","DataSheetUrl":"https:\/\/www.mouser.com\/datasheet\/2\/389\/cd00000464-1795379.pdf","Description":"運算放大器 - 運放器 Dual Low Power","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/mouserelectronics\/images\/SO_8_t.jpg","Category":"運算放大器 - 運放器","LeadTime":"70 日數","LifecycleStatus":"","Manufacturer":"STMicroelectronics","ManufacturerPartNumber":"LM358ADT","Min":"1","Mult":"1","MouserPartNumber":"511-LM358ADT","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Cut Tape"},{"AttributeName":"封裝","AttributeValue":"MouseReel"},{"AttributeName":"封裝","AttributeValue":"Reel"},{"AttributeName":"標準包裝數量","AttributeValue":"2500"}],"PriceBreaks":[{"Quantity":1,"Price":"$0.41","Currency":"USD"},{"Quantity":10,"Price":"$0.307","Currency":"USD"},{"Quantity":100,"Price":"$0.157","Currency":"USD"},{"Quantity":1000,"Price":"$0.117","Currency":"USD"},{"Quantity":2500,"Price":"$0.103","Currency":"USD"},{"Quantity":10000,"Price":"$0.095","Currency":"USD"},{"Quantity":25000,"Price":"$0.091","Currency":"USD"},{"Quantity":50000,"Price":"$0.089","Currency":"USD"},{"Quantity":100000,"Price":"$0.087","Currency":"USD"}],"AlternatePackagings":null,"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/STMicroelectronics\/LM358ADT?qs=M5jEWS1fIVXywUeXugE9og%3D%3D","Reeling":true,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CAHTS","ComplianceValue":"8542330090"},{"ComplianceName":"CNHTS","ComplianceValue":"8542339000"},{"ComplianceName":"USHTS","ComplianceValue":"8542330001"},{"ComplianceName":"JPHTS","ComplianceValue":"8542330996"},{"ComplianceName":"KRHTS","ComplianceValue":"8532331000"},{"ComplianceName":"MXHTS","ComplianceValue":"85423399"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"6185 有庫存","DataSheetUrl":"","Description":"運算放大器 - 運放器 Dual Op Amp","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/texasinstruments\/images\/ITP_TI_SO-8_PS_t.jpg","Category":"運算放大器 - 運放器","LeadTime":"56 日數","LifecycleStatus":"","Manufacturer":"Texas Instruments","ManufacturerPartNumber":"LM358PSR","Min":"1","Mult":"1","MouserPartNumber":"595-LM358PSR","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Cut Tape"},{"AttributeName":"封裝","AttributeValue":"MouseReel"},{"AttributeName":"封裝","AttributeValue":"Reel"},{"AttributeName":"標準包裝數量","AttributeValue":"2000"}],"PriceBreaks":[{"Quantity":1,"Price":"$0.41","Currency":"USD"},{"Quantity":10,"Price":"$0.301","Currency":"USD"},{"Quantity":100,"Price":"$0.168","Currency":"USD"},{"Quantity":500,"Price":"$0.154","Currency":"USD"},{"Quantity":1000,"Price":"$0.116","Currency":"USD"},{"Quantity":2000,"Price":"$0.109","Currency":"USD"},{"Quantity":4000,"Price":"$0.102","Currency":"USD"},{"Quantity":10000,"Price":"$0.094","Currency":"USD"},{"Quantity":24000,"Price":"$0.09","Currency":"USD"}],"AlternatePackagings":null,"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/Texas-Instruments\/LM358PSR?qs=8yeEWhuAOtPnZfjYrrxkeA%3D%3D","Reeling":true,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CAHTS","ComplianceValue":"8542330090"},{"ComplianceName":"CNHTS","ComplianceValue":"8542339000"},{"ComplianceName":"USHTS","ComplianceValue":"8542330001"},{"ComplianceName":"JPHTS","ComplianceValue":"8542330996"},{"ComplianceName":"KRHTS","ComplianceValue":"8532331000"},{"ComplianceName":"MXHTS","ComplianceValue":"85423399"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"4448 有庫存","DataSheetUrl":"","Description":"運算放大器 - 運放器 Dual","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/texasinstruments\/images\/ITP_TI_SOIC-8_D_t.jpg","Category":"運算放大器 - 運放器","LeadTime":"42 日數","LifecycleStatus":"","Manufacturer":"Texas Instruments","ManufacturerPartNumber":"LM358AD","Min":"1","Mult":"1","MouserPartNumber":"595-LM358AD","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Tube"},{"AttributeName":"標準包裝數量","AttributeValue":"75"}],"PriceBreaks":[{"Quantity":1,"Price":"$0.42","Currency":"USD"},{"Quantity":10,"Price":"$0.31","Currency":"USD"},{"Quantity":100,"Price":"$0.173","Currency":"USD"},{"Quantity":500,"Price":"$0.159","Currency":"USD"},{"Quantity":1000,"Price":"$0.119","Currency":"USD"},{"Quantity":2500,"Price":"$0.112","Currency":"USD"},{"Quantity":5000,"Price":"$0.105","Currency":"USD"},{"Quantity":10000,"Price":"$0.096","Currency":"USD"},{"Quantity":25000,"Price":"$0.093","Currency":"USD"}],"AlternatePackagings":[{"APMfrPN":"LM358ADG4"},{"APMfrPN":" LM358ADR"},{"APMfrPN":" LM358ADRG4"}],"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/Texas-Instruments\/LM358AD?qs=Zu35EjizYSQQFJIX8nvEyg%3D%3D","Reeling":false,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CAHTS","ComplianceValue":"8542330090"},{"ComplianceName":"CNHTS","ComplianceValue":"8542339000"},{"ComplianceName":"USHTS","ComplianceValue":"8542330001"},{"ComplianceName":"JPHTS","ComplianceValue":"8542330996"},{"ComplianceName":"KRHTS","ComplianceValue":"8532331000"},{"ComplianceName":"MXHTS","ComplianceValue":"85423399"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"22006 有庫存","DataSheetUrl":"https:\/\/www.mouser.com\/datasheet\/2\/308\/LM358-D-1634144.pdf","Description":"運算放大器 - 運放器 3-32V Dual Lo PWR Commercial Temp","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/mouserelectronics\/images\/SOIC_8_t.jpg","Category":"運算放大器 - 運放器","LeadTime":"77 日數","LifecycleStatus":"","Manufacturer":"ON Semiconductor","ManufacturerPartNumber":"LM358DR2G","Min":"1","Mult":"1","MouserPartNumber":"863-LM358DR2G","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Cut Tape"},{"AttributeName":"封裝","AttributeValue":"MouseReel"},{"AttributeName":"封裝","AttributeValue":"Reel"},{"AttributeName":"標準包裝數量","AttributeValue":"2500"}],"PriceBreaks":[{"Quantity":1,"Price":"$0.44","Currency":"USD"},{"Quantity":10,"Price":"$0.284","Currency":"USD"},{"Quantity":100,"Price":"$0.121","Currency":"USD"},{"Quantity":1000,"Price":"$0.093","Currency":"USD"},{"Quantity":2500,"Price":"$0.073","Currency":"USD"},{"Quantity":10000,"Price":"$0.064","Currency":"USD"},{"Quantity":25000,"Price":"$0.06","Currency":"USD"},{"Quantity":50000,"Price":"$0.058","Currency":"USD"}],"AlternatePackagings":null,"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/ON-Semiconductor\/LM358DR2G?qs=2OtswVQKCOFTvDtJvQ3XHw%3D%3D","Reeling":true,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CAHTS","ComplianceValue":"8542330090"},{"ComplianceName":"CNHTS","ComplianceValue":"8542339000"},{"ComplianceName":"USHTS","ComplianceValue":"8542330001"},{"ComplianceName":"JPHTS","ComplianceValue":"8542330996"},{"ComplianceName":"KRHTS","ComplianceValue":"8532331000"},{"ComplianceName":"MXHTS","ComplianceValue":"85423399"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"1676 有庫存","DataSheetUrl":"","Description":"運算放大器 - 運放器 Dual General-Purpose Op Amp","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/texasinstruments\/images\/ITP_TI_TSSOP-8_PW_t.jpg","Category":"運算放大器 - 運放器","LeadTime":"42 日數","LifecycleStatus":"","Manufacturer":"Texas Instruments","ManufacturerPartNumber":"LM358PW","Min":"1","Mult":"1","MouserPartNumber":"595-LM358PW","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Tube"},{"AttributeName":"標準包裝數量","AttributeValue":"150"}],"PriceBreaks":[{"Quantity":1,"Price":"$0.45","Currency":"USD"},{"Quantity":10,"Price":"$0.327","Currency":"USD"},{"Quantity":100,"Price":"$0.183","Currency":"USD"},{"Quantity":500,"Price":"$0.168","Currency":"USD"},{"Quantity":1000,"Price":"$0.126","Currency":"USD"},{"Quantity":2500,"Price":"$0.118","Currency":"USD"},{"Quantity":5000,"Price":"$0.111","Currency":"USD"},{"Quantity":10000,"Price":"$0.102","Currency":"USD"},{"Quantity":25000,"Price":"$0.098","Currency":"USD"}],"AlternatePackagings":[{"APMfrPN":"LM358PWR"},{"APMfrPN":" LM358PWRG4"}],"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/Texas-Instruments\/LM358PW?qs=VBduBm9rCJT4gzV2Zhpx%2Fg%3D%3D","Reeling":false,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CAHTS","ComplianceValue":"8542330090"},{"ComplianceName":"CNHTS","ComplianceValue":"8542319000"},{"ComplianceName":"USHTS","ComplianceValue":"8542330001"},{"ComplianceName":"JPHTS","ComplianceValue":"8542330996"},{"ComplianceName":"KRHTS","ComplianceValue":"8532331000"},{"ComplianceName":"MXHTS","ComplianceValue":"85423399"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"543 有庫存","DataSheetUrl":"","Description":"運算放大器 - 運放器 Dual Op Amp","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/texasinstruments\/images\/ITP_TI_PDIP-8_P_t.jpg","Category":"運算放大器 - 運放器","LeadTime":"42 日數","LifecycleStatus":"","Manufacturer":"Texas Instruments","ManufacturerPartNumber":"LM358PE3","Min":"1","Mult":"1","MouserPartNumber":"595-LM358PE3","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Tube"},{"AttributeName":"標準包裝數量","AttributeValue":"50"}],"PriceBreaks":[{"Quantity":1,"Price":"$0.46","Currency":"USD"},{"Quantity":10,"Price":"$0.336","Currency":"USD"},{"Quantity":100,"Price":"$0.188","Currency":"USD"},{"Quantity":500,"Price":"$0.172","Currency":"USD"},{"Quantity":1000,"Price":"$0.129","Currency":"USD"},{"Quantity":2500,"Price":"$0.121","Currency":"USD"},{"Quantity":5000,"Price":"$0.114","Currency":"USD"},{"Quantity":10000,"Price":"$0.104","Currency":"USD"},{"Quantity":25000,"Price":"$0.10","Currency":"USD"}],"AlternatePackagings":null,"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/Texas-Instruments\/LM358PE3?qs=EuM%2FBx4ov4QR1JWWo%252BSKOg%3D%3D","Reeling":false,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CAHTS","ComplianceValue":"8542330090"},{"ComplianceName":"CNHTS","ComplianceValue":"8542319000"},{"ComplianceName":"USHTS","ComplianceValue":"8542330001"},{"ComplianceName":"JPHTS","ComplianceValue":"8542330996"},{"ComplianceName":"KRHTS","ComplianceValue":"8532331000"},{"ComplianceName":"MXHTS","ComplianceValue":"85423999"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"5039 有庫存","DataSheetUrl":"","Description":"運算放大器 - 運放器 Dual","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/texasinstruments\/images\/ITP_TI_PDIP-8_P_t.jpg","Category":"運算放大器 - 運放器","LeadTime":"44 日數","LifecycleStatus":"","Manufacturer":"Texas Instruments","ManufacturerPartNumber":"LM358AP","Min":"1","Mult":"1","MouserPartNumber":"595-LM358AP","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Tube"},{"AttributeName":"標準包裝數量","AttributeValue":"50"}],"PriceBreaks":[{"Quantity":1,"Price":"$0.48","Currency":"USD"},{"Quantity":10,"Price":"$0.349","Currency":"USD"},{"Quantity":100,"Price":"$0.195","Currency":"USD"},{"Quantity":500,"Price":"$0.179","Currency":"USD"},{"Quantity":1000,"Price":"$0.134","Currency":"USD"},{"Quantity":2500,"Price":"$0.126","Currency":"USD"},{"Quantity":5000,"Price":"$0.118","Currency":"USD"},{"Quantity":10000,"Price":"$0.108","Currency":"USD"},{"Quantity":25000,"Price":"$0.104","Currency":"USD"}],"AlternatePackagings":null,"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/Texas-Instruments\/LM358AP?qs=Zu35EjizYSShld7Gr9Muww%3D%3D","Reeling":false,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CAHTS","ComplianceValue":"8542330090"},{"ComplianceName":"CNHTS","ComplianceValue":"8542339000"},{"ComplianceName":"USHTS","ComplianceValue":"8542330001"},{"ComplianceName":"JPHTS","ComplianceValue":"8542330996"},{"ComplianceName":"KRHTS","ComplianceValue":"8532331000"},{"ComplianceName":"MXHTS","ComplianceValue":"85423399"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"331 有庫存","DataSheetUrl":"","Description":"運算放大器 - 運放器 Dual General-Purpose Op Amp","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/texasinstruments\/images\/ITP_TI_PDIP-8_P_t.jpg","Category":"運算放大器 - 運放器","LeadTime":"42 日數","LifecycleStatus":"","Manufacturer":"Texas Instruments","ManufacturerPartNumber":"LM358PE4","Min":"1","Mult":"1","MouserPartNumber":"595-LM358PE4","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Tube"},{"AttributeName":"標準包裝數量","AttributeValue":"50"}],"PriceBreaks":[{"Quantity":1,"Price":"$0.54","Currency":"USD"},{"Quantity":10,"Price":"$0.396","Currency":"USD"},{"Quantity":100,"Price":"$0.221","Currency":"USD"},{"Quantity":500,"Price":"$0.203","Currency":"USD"},{"Quantity":1000,"Price":"$0.152","Currency":"USD"},{"Quantity":2500,"Price":"$0.143","Currency":"USD"},{"Quantity":5000,"Price":"$0.134","Currency":"USD"},{"Quantity":10000,"Price":"$0.123","Currency":"USD"},{"Quantity":25000,"Price":"$0.118","Currency":"USD"}],"AlternatePackagings":null,"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/Texas-Instruments\/LM358PE4?qs=VBduBm9rCJTWtuRHSrRjAg%3D%3D","Reeling":false,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CAHTS","ComplianceValue":"8542330090"},{"ComplianceName":"CNHTS","ComplianceValue":"8542339000"},{"ComplianceName":"USHTS","ComplianceValue":"8542330001"},{"ComplianceName":"JPHTS","ComplianceValue":"8542330996"},{"ComplianceName":"KRHTS","ComplianceValue":"8532331000"},{"ComplianceName":"MXHTS","ComplianceValue":"85423399"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"2816 有庫存","DataSheetUrl":"","Description":"運算放大器 - 運放器 LOW PWR DUAL OP AMP","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/texasinstruments\/images\/ITP_TI_PDIP-8_P_t.jpg","Category":"運算放大器 - 運放器","LeadTime":"42 日數","LifecycleStatus":"","Manufacturer":"Texas Instruments","ManufacturerPartNumber":"LM358AN\/NOPB","Min":"1","Mult":"1","MouserPartNumber":"926-LM358AN\/NOPB","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Tube"},{"AttributeName":"標準包裝數量","AttributeValue":"40"}],"PriceBreaks":[{"Quantity":1,"Price":"$0.88","Currency":"USD"},{"Quantity":10,"Price":"$0.745","Currency":"USD"},{"Quantity":100,"Price":"$0.572","Currency":"USD"},{"Quantity":250,"Price":"$0.506","Currency":"USD"},{"Quantity":500,"Price":"$0.479","Currency":"USD"},{"Quantity":1000,"Price":"$0.373","Currency":"USD"},{"Quantity":2500,"Price":"$0.354","Currency":"USD"},{"Quantity":5000,"Price":"$0.341","Currency":"USD"},{"Quantity":10000,"Price":"$0.33","Currency":"USD"}],"AlternatePackagings":null,"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/Texas-Instruments\/LM358AN-NOPB?qs=QbsRYf82W3GCff2Ox79KQw%3D%3D","Reeling":false,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CAHTS","ComplianceValue":"8542330090"},{"ComplianceName":"CNHTS","ComplianceValue":"8542339000"},{"ComplianceName":"USHTS","ComplianceValue":"8542330001"},{"ComplianceName":"JPHTS","ComplianceValue":"8542330996"},{"ComplianceName":"KRHTS","ComplianceValue":"8532331000"},{"ComplianceName":"MXHTS","ComplianceValue":"85423301"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"2523 有庫存","DataSheetUrl":"","Description":"運算放大器 - 運放器 LOW PWR DUAL OP AMP","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/texasinstruments\/images\/ITP_TI_SOIC-8_D_t.jpg","Category":"運算放大器 - 運放器","LeadTime":"42 日數","LifecycleStatus":"","Manufacturer":"Texas Instruments","ManufacturerPartNumber":"LM358M\/NOPB","Min":"1","Mult":"1","MouserPartNumber":"926-LM358M\/NOPB","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Tube"},{"AttributeName":"標準包裝數量","AttributeValue":"95"}],"PriceBreaks":[{"Quantity":1,"Price":"$0.91","Currency":"USD"},{"Quantity":10,"Price":"$0.77","Currency":"USD"},{"Quantity":100,"Price":"$0.592","Currency":"USD"},{"Quantity":250,"Price":"$0.523","Currency":"USD"},{"Quantity":500,"Price":"$0.495","Currency":"USD"},{"Quantity":1000,"Price":"$0.385","Currency":"USD"},{"Quantity":2500,"Price":"$0.366","Currency":"USD"},{"Quantity":5000,"Price":"$0.352","Currency":"USD"},{"Quantity":10000,"Price":"$0.341","Currency":"USD"}],"AlternatePackagings":[{"APMfrPN":"LM358MX\/NOPB"}],"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/Texas-Instruments\/LM358M-NOPB?qs=QbsRYf82W3EbKcP6KTyBjQ%3D%3D","Reeling":false,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CAHTS","ComplianceValue":"8542330090"},{"ComplianceName":"CNHTS","ComplianceValue":"8542319000"},{"ComplianceName":"USHTS","ComplianceValue":"8542330001"},{"ComplianceName":"JPHTS","ComplianceValue":"8542330996"},{"ComplianceName":"KRHTS","ComplianceValue":"8532331000"},{"ComplianceName":"MXHTS","ComplianceValue":"85423301"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"3372 有庫存","DataSheetUrl":"","Description":"運算放大器 - 運放器 LOW PWR DUAL OP AMP","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/texasinstruments\/images\/ITP_TI_SOIC-8_D_t.jpg","Category":"運算放大器 - 運放器","LeadTime":"42 日數","LifecycleStatus":"","Manufacturer":"Texas Instruments","ManufacturerPartNumber":"LM358AM\/NOPB","Min":"1","Mult":"1","MouserPartNumber":"926-LM358AM\/NOPB","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Tube"},{"AttributeName":"標準包裝數量","AttributeValue":"95"}],"PriceBreaks":[{"Quantity":1,"Price":"$0.94","Currency":"USD"},{"Quantity":10,"Price":"$0.793","Currency":"USD"},{"Quantity":100,"Price":"$0.609","Currency":"USD"},{"Quantity":250,"Price":"$0.538","Currency":"USD"},{"Quantity":500,"Price":"$0.51","Currency":"USD"},{"Quantity":1000,"Price":"$0.397","Currency":"USD"},{"Quantity":2500,"Price":"$0.377","Currency":"USD"},{"Quantity":5000,"Price":"$0.363","Currency":"USD"},{"Quantity":10000,"Price":"$0.351","Currency":"USD"}],"AlternatePackagings":[{"APMfrPN":"LM358AMX\/NOPB"}],"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/Texas-Instruments\/LM358AM-NOPB?qs=QbsRYf82W3Fn9z%2FKgiJpNw%3D%3D","Reeling":false,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CAHTS","ComplianceValue":"8542330090"},{"ComplianceName":"CNHTS","ComplianceValue":"8542339000"},{"ComplianceName":"USHTS","ComplianceValue":"8542330001"},{"ComplianceName":"JPHTS","ComplianceValue":"8542330996"},{"ComplianceName":"KRHTS","ComplianceValue":"8532331000"},{"ComplianceName":"MXHTS","ComplianceValue":"85423301"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"864 有庫存","DataSheetUrl":"https:\/\/www.mouser.com\/datasheet\/2\/389\/cd00000464-1795379.pdf","Description":"運算放大器 - 運放器 Dual Low Power","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/mouserelectronics\/images\/SO_8_t.jpg","Category":"運算放大器 - 運放器","LeadTime":"175 日數","LifecycleStatus":"","Manufacturer":"STMicroelectronics","ManufacturerPartNumber":"LM358AD","Min":"1","Mult":"1","MouserPartNumber":"511-LM358AD","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Tube"},{"AttributeName":"標準包裝數量","AttributeValue":"2000"}],"PriceBreaks":[{"Quantity":1,"Price":"$2.65","Currency":"USD"},{"Quantity":10,"Price":"$2.24","Currency":"USD"},{"Quantity":100,"Price":"$1.84","Currency":"USD"},{"Quantity":250,"Price":"$1.65","Currency":"USD"},{"Quantity":500,"Price":"$1.60","Currency":"USD"},{"Quantity":1000,"Price":"$1.32","Currency":"USD"},{"Quantity":2000,"Price":"$1.27","Currency":"USD"},{"Quantity":4000,"Price":"$1.23","Currency":"USD"},{"Quantity":10000,"Price":"$1.22","Currency":"USD"}],"AlternatePackagings":null,"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/STMicroelectronics\/LM358AD?qs=LPKLnBpMevgv2iN8DdGgKg%3D%3D","Reeling":false,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CAHTS","ComplianceValue":"8542330090"},{"ComplianceName":"CNHTS","ComplianceValue":"8542339000"},{"ComplianceName":"USHTS","ComplianceValue":"8542330001"},{"ComplianceName":"JPHTS","ComplianceValue":"8542330996"},{"ComplianceName":"KRHTS","ComplianceValue":"8532331000"},{"ComplianceName":"MXHTS","ComplianceValue":"85423399"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"2595 有庫存","DataSheetUrl":"","Description":"運算放大器 - 運放器 Dual Operational Amplifier","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/texasinstruments\/images\/ITP_TI_PDIP-8_P_t.jpg","Category":"運算放大器 - 運放器","LeadTime":"42 日數","LifecycleStatus":"","Manufacturer":"Texas Instruments","ManufacturerPartNumber":"LM358APE4","Min":"1","Mult":"1","MouserPartNumber":"595-LM358APE4","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Tube"},{"AttributeName":"標準包裝數量","AttributeValue":"50"}],"PriceBreaks":[{"Quantity":1,"Price":"$0.48","Currency":"USD"},{"Quantity":10,"Price":"$0.349","Currency":"USD"},{"Quantity":100,"Price":"$0.195","Currency":"USD"},{"Quantity":500,"Price":"$0.179","Currency":"USD"},{"Quantity":1000,"Price":"$0.134","Currency":"USD"},{"Quantity":2500,"Price":"$0.126","Currency":"USD"},{"Quantity":5000,"Price":"$0.118","Currency":"USD"},{"Quantity":10000,"Price":"$0.108","Currency":"USD"},{"Quantity":25000,"Price":"$0.104","Currency":"USD"}],"AlternatePackagings":null,"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/Texas-Instruments\/LM358APE4?qs=VBduBm9rCJTOdx3RyeRhNA%3D%3D","Reeling":false,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CAHTS","ComplianceValue":"8542330090"},{"ComplianceName":"CNHTS","ComplianceValue":"8542319000"},{"ComplianceName":"USHTS","ComplianceValue":"8542330001"},{"ComplianceName":"JPHTS","ComplianceValue":"8542330996"},{"ComplianceName":"KRHTS","ComplianceValue":"8532331000"},{"ComplianceName":"MXHTS","ComplianceValue":"85423399"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"1710 有庫存","DataSheetUrl":"https:\/\/www.mouser.com\/datasheet\/2\/389\/cd00000464-1795379.pdf","Description":"運算放大器 - 運放器 Dual Low Power","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/mouserelectronics\/images\/TSSOP_8_t.jpg","Category":"運算放大器 - 運放器","LeadTime":"84 日數","LifecycleStatus":"","Manufacturer":"STMicroelectronics","ManufacturerPartNumber":"LM358PT","Min":"1","Mult":"1","MouserPartNumber":"511-LM358P","ProductAttributes":[{"AttributeName":"標準包裝數量","AttributeValue":"4000"}],"PriceBreaks":[{"Quantity":1,"Price":"$0.39","Currency":"USD"},{"Quantity":10,"Price":"$0.288","Currency":"USD"},{"Quantity":100,"Price":"$0.147","Currency":"USD"},{"Quantity":1000,"Price":"$0.11","Currency":"USD"},{"Quantity":4000,"Price":"$0.097","Currency":"USD"},{"Quantity":8000,"Price":"$0.089","Currency":"USD"},{"Quantity":24000,"Price":"$0.085","Currency":"USD"},{"Quantity":48000,"Price":"$0.083","Currency":"USD"},{"Quantity":100000,"Price":"$0.082","Currency":"USD"}],"AlternatePackagings":null,"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/STMicroelectronics\/LM358PT?qs=PFToyzIRtREjqZ2xwsLPIg%3D%3D","Reeling":false,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CAHTS","ComplianceValue":"8542330090"},{"ComplianceName":"CNHTS","ComplianceValue":"8542319000"},{"ComplianceName":"USHTS","ComplianceValue":"8542330001"},{"ComplianceName":"JPHTS","ComplianceValue":"8542330996"},{"ComplianceName":"KRHTS","ComplianceValue":"8532331000"},{"ComplianceName":"MXHTS","ComplianceValue":"85423399"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"2563 有庫存","DataSheetUrl":"","Description":"運算放大器 - 運放器 Dual General-Purpose Op Amp","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/texasinstruments\/images\/ITP_TI_SOIC-8_D_t.jpg","Category":"運算放大器 - 運放器","LeadTime":"42 日數","LifecycleStatus":"","Manufacturer":"Texas Instruments","ManufacturerPartNumber":"LM358DG4","Min":"1","Mult":"1","MouserPartNumber":"595-LM358DG4","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Tube"},{"AttributeName":"標準包裝數量","AttributeValue":"75"}],"PriceBreaks":[{"Quantity":1,"Price":"$0.41","Currency":"USD"},{"Quantity":10,"Price":"$0.301","Currency":"USD"},{"Quantity":100,"Price":"$0.168","Currency":"USD"},{"Quantity":500,"Price":"$0.154","Currency":"USD"},{"Quantity":1000,"Price":"$0.116","Currency":"USD"},{"Quantity":2500,"Price":"$0.109","Currency":"USD"},{"Quantity":5000,"Price":"$0.102","Currency":"USD"},{"Quantity":10000,"Price":"$0.094","Currency":"USD"},{"Quantity":25000,"Price":"$0.09","Currency":"USD"}],"AlternatePackagings":[{"APMfrPN":"LM358D"},{"APMfrPN":" LM358DR"},{"APMfrPN":" LM358DRG4"}],"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/Texas-Instruments\/LM358DG4?qs=VBduBm9rCJTncCN00xZWPA%3D%3D","Reeling":false,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CAHTS","ComplianceValue":"8542330090"},{"ComplianceName":"CNHTS","ComplianceValue":"8542339000"},{"ComplianceName":"USHTS","ComplianceValue":"8542330001"},{"ComplianceName":"JPHTS","ComplianceValue":"8542330996"},{"ComplianceName":"KRHTS","ComplianceValue":"8532331000"},{"ComplianceName":"MXHTS","ComplianceValue":"85423399"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"487 有庫存","DataSheetUrl":"https:\/\/www.mouser.com\/datasheet\/2\/308\/LM358-D-1634144.pdf","Description":"運算放大器 - 運放器 3-32V Dual Lo PWR Commercial Temp","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/mouserelectronics\/images\/MSOP_8_t.jpg","Category":"運算放大器 - 運放器","LeadTime":"53 日數","LifecycleStatus":"","Manufacturer":"ON Semiconductor","ManufacturerPartNumber":"LM358DMR2G","Min":"1","Mult":"1","MouserPartNumber":"863-LM358DMR2G","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Cut Tape"},{"AttributeName":"封裝","AttributeValue":"MouseReel"},{"AttributeName":"封裝","AttributeValue":"Reel"},{"AttributeName":"標準包裝數量","AttributeValue":"4000"}],"PriceBreaks":[{"Quantity":1,"Price":"$0.41","Currency":"USD"},{"Quantity":10,"Price":"$0.301","Currency":"USD"},{"Quantity":100,"Price":"$0.154","Currency":"USD"},{"Quantity":1000,"Price":"$0.115","Currency":"USD"},{"Quantity":4000,"Price":"$0.106","Currency":"USD"},{"Quantity":8000,"Price":"$0.093","Currency":"USD"},{"Quantity":24000,"Price":"$0.089","Currency":"USD"},{"Quantity":48000,"Price":"$0.087","Currency":"USD"},{"Quantity":100000,"Price":"$0.086","Currency":"USD"}],"AlternatePackagings":null,"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/ON-Semiconductor\/LM358DMR2G?qs=2OtswVQKCOE29DTqUuRMwA%3D%3D","Reeling":true,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CAHTS","ComplianceValue":"8542330090"},{"ComplianceName":"CNHTS","ComplianceValue":"8542339000"},{"ComplianceName":"USHTS","ComplianceValue":"8542330001"},{"ComplianceName":"JPHTS","ComplianceValue":"8542330996"},{"ComplianceName":"KRHTS","ComplianceValue":"8532331000"},{"ComplianceName":"MXHTS","ComplianceValue":"85423399"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"4732 有庫存","DataSheetUrl":"","Description":"運算放大器 - 運放器 Dual Op Amp","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/texasinstruments\/images\/ITP_TI_SOIC-8_D_t.jpg","Category":"運算放大器 - 運放器","LeadTime":"42 日數","LifecycleStatus":"","Manufacturer":"Texas Instruments","ManufacturerPartNumber":"LM358DRG3","Min":"1","Mult":"1","MouserPartNumber":"595-LM358DRG3","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Cut Tape"},{"AttributeName":"封裝","AttributeValue":"MouseReel"},{"AttributeName":"封裝","AttributeValue":"Reel"},{"AttributeName":"標準包裝數量","AttributeValue":"2500"}],"PriceBreaks":[{"Quantity":1,"Price":"$0.48","Currency":"USD"},{"Quantity":10,"Price":"$0.32","Currency":"USD"},{"Quantity":100,"Price":"$0.169","Currency":"USD"},{"Quantity":500,"Price":"$0.151","Currency":"USD"},{"Quantity":1000,"Price":"$0.116","Currency":"USD"},{"Quantity":2500,"Price":"$0.099","Currency":"USD"},{"Quantity":10000,"Price":"$0.09","Currency":"USD"},{"Quantity":25000,"Price":"$0.085","Currency":"USD"},{"Quantity":50000,"Price":"$0.082","Currency":"USD"}],"AlternatePackagings":null,"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/Texas-Instruments\/LM358DRG3?qs=EuM%2FBx4ov4Rx34%252Bm5fT4Qw%3D%3D","Reeling":true,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CAHTS","ComplianceValue":"8542330000"},{"ComplianceName":"CNHTS","ComplianceValue":"8542339000"},{"ComplianceName":"USHTS","ComplianceValue":"8542330001"},{"ComplianceName":"JPHTS","ComplianceValue":"8542390990"},{"ComplianceName":"KRHTS","ComplianceValue":"8532331000"},{"ComplianceName":"MXHTS","ComplianceValue":"85423999"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]},{"Availability":"3700 有庫存","DataSheetUrl":"","Description":"運算放大器 - 運放器 Dual General-Purpose Op Amp","FactoryStock":"0","ImagePath":"https:\/\/www.mouser.com\/images\/texasinstruments\/images\/ITP_TI_SOIC-8_D_t.jpg","Category":"運算放大器 - 運放器","LeadTime":"42 日數","LifecycleStatus":"","Manufacturer":"Texas Instruments","ManufacturerPartNumber":"LM358DRG4","Min":"1","Mult":"1","MouserPartNumber":"595-LM358DRG4","ProductAttributes":[{"AttributeName":"封裝","AttributeValue":"Cut Tape"},{"AttributeName":"封裝","AttributeValue":"MouseReel"},{"AttributeName":"封裝","AttributeValue":"Reel"},{"AttributeName":"標準包裝數量","AttributeValue":"2500"}],"PriceBreaks":[{"Quantity":1,"Price":"$0.48","Currency":"USD"},{"Quantity":10,"Price":"$0.32","Currency":"USD"},{"Quantity":100,"Price":"$0.169","Currency":"USD"},{"Quantity":500,"Price":"$0.151","Currency":"USD"},{"Quantity":1000,"Price":"$0.116","Currency":"USD"},{"Quantity":2500,"Price":"$0.099","Currency":"USD"},{"Quantity":10000,"Price":"$0.09","Currency":"USD"},{"Quantity":25000,"Price":"$0.085","Currency":"USD"},{"Quantity":50000,"Price":"$0.082","Currency":"USD"}],"AlternatePackagings":[{"APMfrPN":"LM358D"},{"APMfrPN":" LM358DG4"},{"APMfrPN":" LM358DR"}],"ProductDetailUrl":"https:\/\/www.mouser.hk\/ProductDetail\/Texas-Instruments\/LM358DRG4?qs=VBduBm9rCJQ28fT54GxXvw%3D%3D","Reeling":true,"ROHSStatus":"RoHS Compliant","SuggestedReplacement":"","MultiSimBlue":0,"ProductCompliance":[{"ComplianceName":"CAHTS","ComplianceValue":"8542330090"},{"ComplianceName":"CNHTS","ComplianceValue":"8542339000"},{"ComplianceName":"USHTS","ComplianceValue":"8542330001"},{"ComplianceName":"JPHTS","ComplianceValue":"8542330996"},{"ComplianceName":"KRHTS","ComplianceValue":"8532331000"},{"ComplianceName":"MXHTS","ComplianceValue":"85423399"},{"ComplianceName":"TARIC","ComplianceValue":"8542330000"},{"ComplianceName":"ECCN","ComplianceValue":"EAR99"}]}]}}`;
}else{
req.SetTimeout(10 * time.Second)
resp, err := req.Post(Mouser_api_url,req.BodyJSON("{\"SearchByPartRequest\":{\"mouserPartNumber\":\""+goodsName+"\",\"partSearchOptions\":\"string\"}}"))
resp, err := req.Post(Mouser_api_url,req.BodyJSON("{\"SearchByPartRequest\":{\"mouserPartNumber\":\""+*goodsName+"\",\"partSearchOptions\":\"string\"}}"))
if err != nil {
print(Mouser_api_url)
print(err)
......@@ -38,12 +38,11 @@ func OutLink(goodsName string,flag string) map[string]*model.LyClearGoodsList {
apiGoodsList := gjson.Get(result, "SearchResults.Parts").Array()
for _, goods := range apiGoodsList {
goodsStr := goods.String()
goodsSn := gjson.Get(goodsStr, "MouserPartNumber").String() //供应商唯一编码
goodsSn := goods.Get("MouserPartNumber").String()
ladderPrice := make([]*model.TierItem, 0)
//拼接价格梯度
apiPriceTi := gjson.Get(goodsStr, "PriceBreaks").Array()
apiPriceTi := goods.Get("PriceBreaks").Array()
var apiLowerPrice float64 = 0; //计算最低价格
for _,priceItem := range apiPriceTi{
priceItemStr := priceItem.String();
......@@ -63,16 +62,16 @@ func OutLink(goodsName string,flag string) map[string]*model.LyClearGoodsList {
//拼接联营数据
LyClearGoodsList := model.LyClearGoodsList{
GoodsName: gjson.Get(goodsStr, "ManufacturerPartNumber").String(),
BrandName: gjson.Get(goodsStr, "Manufacturer").String(),
Desc: gjson.Get(goodsStr, "Description").String(),
GoodsName: goods.Get("ManufacturerPartNumber").String(),
BrandName: goods.Get("Manufacturer").String(),
Desc: goods.Get("Description").String(),
GoodsSn: goodsSn,
Docurl: gjson.Get(goodsStr, "DataSheetUrl").String(),
Url: gjson.Get(goodsStr, "ProductDetailUrl").String(),
GoodsImg: gjson.Get(goodsStr, "ImagePath").String(),
Cat: gjson.Get(goodsStr, "Category").String(),
Increment: gjson.Get(goodsStr, "Mult").Uint(),
RestrictionMessage: gjson.Get(goodsStr, "RestrictionMessage").String(),
Docurl: goods.Get("DataSheetUrl").String(),
Url: goods.Get("ProductDetailUrl").String(),
GoodsImg: goods.Get("ImagePath").String(),
Cat: goods.Get("Category").String(),
Increment: goods.Get("Mult").Int(),
RestrictionMessage: goods.Get("RestrictionMessage").String(),
SinglePrice: apiLowerPrice,
Tiered:ladderPrice,
}
......
package service
//推送搜索关键词
func ShowSku() {
}
\ No newline at end of file
package transformer
import (
"github.com/gomodule/redigo/redis"
"github.com/tidwall/gjson"
"search_server/dao"
"search_server/middleware"
"search_server/model"
"search_server/pkg/common"
"search_server/pkg/config"
"search_server/pkg/gredis"
"strings"
)
//处理商品信息数据
func DullDataInfo(keyword string, goodsListMap map[string]model.ApiGoods) (result []model.DullGoodsData, err error) {
//获取redis链接
redisCon := gredis.Conn("search_r")
defer redisCon.Close()
for _, item := range goodsListMap {
var goods model.DullGoodsData
goods.ApiGoods = item
if goods.GoodsName == "" {
goods.GoodsName = goods.SpuName
}
//获取goods_temp_name字段
goods = getGoodsTempName(keyword, goods)
//获取tes广告
goods = getTesAd(goods)
//供应商信息,读取redis,来源于基石配置
goods, err := getSupplierInfo(goods)
if err != nil {
return result, err
}
//在不同的环境组装不同的url
goods = spliceUrlByEnvironment(goods)
//获取汇率相关
goods = getRatio(goods)
//todo:提供给客服报价系统专用(因为只是给快手用的,所以抽离出这个方法)
//整理数据
goods = arrangeData(goods)
//优惠券信息
goods = getCouponInfo(goods)
//最后查询时间
goods.LastSearchTime = common.GetLastSearchTime(goods.GoodsId)
//关税信息
goods.CustomsTax = common.GetCustomsTax(goods.GoodsName, goods.BrandName)
//todo : showsku方法
//价格等信息混淆
if keyword != "---" {
goods, err = MetGoodsInfo(goods)
if err != nil {
return result, err
}
}
//增加类似物料字段
goods = getGoodsAlike(keyword, goods)
result = append(result, goods)
}
return
}
//在不同的环境组装不同的url
func spliceUrlByEnvironment(goods model.DullGoodsData) model.DullGoodsData {
referer := middleware.Context.Request.Header.Get("referer")
refererTemp := strings.Split(referer, ".com")
if len(refererTemp) > 0 {
goods.BrandUrl = refererTemp[0] + ".com/v3/brand/list/" + common.ToString(goods.BrandId) + ".html"
goods.GoodsUrl = refererTemp[0] + ".com/goods_" + common.ToString(goods.GoodsId) + ".html"
}
return goods
}
//goods_name_temp
func getGoodsTempName(keyword string, goods model.DullGoodsData) model.DullGoodsData {
if keyword != "" {
replaceString := "<b class='f-red'>" + strings.ToUpper(keyword) + "</b>"
goods.GoodsNameTemp = common.CaseInsensitiveReplace(goods.GoodsName, keyword, replaceString)
} else {
goods.GoodsNameTemp = goods.GoodsName
}
if goods.Mpq > goods.Moq {
goods.Multiple = goods.Moq
} else {
goods.Multiple = goods.Mpq
}
return goods
}
//te广告按钮
func getTesAd(goods model.DullGoodsData) model.DullGoodsData {
redisCon := gredis.Conn("search_r")
defer redisCon.Close()
teSwitch, _ := redis.Int(redisCon.Do("GET", "TeSwitch"))
if goods.BrandId == 161 && goods.GoodsId != "1152755238555810539" && teSwitch == 2 {
goods.SearchSampleApplication = "https://www.te.com.cn/chn-zh/solutions/sg-sample-request-form.html?te_bu=Cor&te_type=other&te_campaign=ich_chn_cor-ich-chn-part-selectmktg-fy19-srp-sample_sma-431_10&elqCampaignId=32896"
goods.SearchContactExperts = "https://www.te.com.cn/chn-zh/solutions/connectivity.html?te_bu=Cor&te_type=other&te_campaign=ich_chn_cor-ich-chn-part-selectmktg-fy19-srp-contact_sma-431_11&elqCampaignId=32897"
}
return goods
}
//获取供应商相关信息
func getSupplierInfo(goods model.DullGoodsData) (model.DullGoodsData, error) {
redisCon := gredis.Conn("search_r")
defer redisCon.Close()
supplier, err := dao.GetSupplierExtraBySupplierId(goods.SupplierId)
if err != nil {
return model.DullGoodsData{}, err
}
supplier.SupplierLogo = "https://" +
strings.TrimLeft(supplier.SupplierLogo, "http://")
goods.SupplierLogo = supplier.SupplierLogo
goods.SupplierSort = supplier.Sort
ad := make(map[string]string)
if supplier.AdText != "" {
ad["ad"] = supplier.AdText
ad["url"] = supplier.AdUrl
goods.SupplierAd = ad
} else {
goods.SupplierAd = ""
}
goods.PageFlag = 2
//获取官网信息
officialWebsites := config.Cfg.Section("official_website").KeysHash()
if website, exist := officialWebsites[common.ToString(goods.SupplierId)]; exist {
goods.SupplierWebsite = strings.Replace(website, "liexin", goods.SupplierName, -1)
} else {
goods.SupplierWebsite = ""
}
//猎芯联营采购员 ,添加供应商采购员渠道不得为空
if goods.Canal != "" {
purchaseName, _ := redis.String(redisCon.Do("HGET", "search_supplier_canaltopurchase", goods.Canal))
goods.PurchaseName = purchaseName
}
return goods, err
}
//获取相关汇率
func getRatio(goods model.DullGoodsData) model.DullGoodsData {
//是否为过期,把优惠信息屏蔽
if goods.Status != 1 {
goods.AcType = 0
goods.Ratio = 0
}
//人民币汇率ratio
if goods.Coefficient.Ratio > 0 {
goods.PriceXs = goods.Coefficient.Ratio
}
//人民币利润点 cn
if goods.Coefficient.Cn > 0 {
goods.PriceProfit = goods.Coefficient.Cn
}
//香港汇率extra_ratio
if goods.Coefficient.ExtraRatio > 0 {
goods.PriceHkxs = goods.Coefficient.ExtraRatio
}
return goods
}
//获取优惠券信息
func getCouponInfo(goods model.DullGoodsData) model.DullGoodsData {
redisCon := gredis.Conn("search_r")
defer redisCon.Close()
couponInfoStr, _ := redis.String(redisCon.Do("HGET", "search_supplier_coupon_list", goods.SupplierId))
if couponInfoStr != "" {
goods.CouponId = int(gjson.Get(couponInfoStr, "tem_id").Int())
goods.CouponTitle = gjson.Get(couponInfoStr, "title").String()
}
return goods
}
//获取类似物料
func getGoodsAlike(keyword string, goods model.DullGoodsData) model.DullGoodsData {
redisCon := gredis.Conn("search_r")
defer redisCon.Close()
key := config.Get("redis_all.POOL_ALIKE_GOODS").String()
alikeGoodsStr, _ := redis.String(redisCon.Do("HGET", key, goods.GoodsId))
alikeGoodsStr = strings.ToUpper(strings.Replace(alikeGoodsStr, "€", ",", -1))
var alikeStr, redStr, redFirstStr string
keyword = strings.ToUpper(keyword)
alikeGoods := strings.Split(alikeGoodsStr, ",")
for _, goodsName := range alikeGoods {
if strings.Contains(goodsName, keyword) {
//替换字符串
replace := "<b class='f-red'>" + keyword + "</b>"
tempStr := common.CaseInsensitiveReplace(goodsName, keyword, replace)
if goodsName == keyword {
redFirstStr = tempStr + ","
} else {
redStr = tempStr + "," + redStr
}
} else {
alikeStr = goodsName + "," + alikeStr
}
}
str := redFirstStr + redStr + alikeStr
goods.Alike = strings.TrimRight(str, ",")
return goods
}
//整理数据
func arrangeData(goods model.DullGoodsData) model.DullGoodsData {
//判断期货是否展现
if len(goods.LadderPrice) == 0 {
goods.CnDeliveryTime = ""
goods.HkDeliveryTime = ""
}
if (len(goods.LadderPrice) > 0) && (goods.LadderPrice[0].PriceCn <= 0) {
goods.CnDeliveryTime = ""
}
if (len(goods.LadderPrice) > 0) && (goods.LadderPrice[0].PriceUs <= 0) {
goods.HkDeliveryTime = ""
}
//起订量对比第一阶梯价
if len(goods.LadderPrice) > 0 {
if goods.LadderPrice[0].Purchases > goods.Moq {
goods.Moq = goods.LadderPrice[0].Purchases
}
}
//是否过期
if goods.Status != 1 && goods.Stock > 0 {
goods.IsBuy = 3
}
//处理不正确的数据
if len(goods.GoodsImages) < 5 || !strings.Contains(goods.GoodsImages, "//") {
goods.GoodsImages = ""
}
if len(goods.Pdf) < 5 {
goods.Pdf = ""
}
if goods.Ratio < 0 {
goods.Ratio = 0
}
if goods.Mpq == 0 {
goods.Mpq = 1
}
return goods
}
//价格等信息混淆
func MetGoodsInfo(data model.DullGoodsData) (result model.DullGoodsData, err error) {
type CheckParams struct {
CheckButton int `form:"check_button"`
K1 int `form:"k1"`
K2 int `form:"k2"`
}
var checkParams CheckParams
err = middleware.Context.Bind(&checkParams)
if checkParams.CheckButton == 2 || checkParams.K1 != 0 || checkParams.K2 != 0 {
data.StockStr = data.Stock
data.MoqStr = data.Moq
data.MpqStr = data.Mpq
data.MplStr = data.Mpl
data.MultipleStr = data.Multiple
if len(data.LadderPrice) > 0 {
for key, price := range data.LadderPrice {
data.LadderPrice[key].PurchasesStr = price.Purchases
}
}
return data, err
} else {
if len(data.LadderPrice) > 0 {
for key, price := range data.LadderPrice {
data.LadderPrice[key].PurchasesStr = common.NumberToHtml(price.Purchases)
}
}
data.StockStr = common.NumberToHtml(data.Stock)
data.MoqStr = common.NumberToHtml(data.Moq)
data.MpqStr = common.NumberToHtml(data.Mpq)
data.MplStr = common.NumberToHtml(data.Mpl)
data.MultipleStr = common.NumberToHtml(data.Multiple)
return data, err
}
}
......@@ -3,10 +3,25 @@ package main
import (
"flag"
"fmt"
"github.com/syyongx/php2go"
"search_server/boot"
"search_server/service"
)
func StrRandom(lenNum int) string {
randStr := "sdwpkxmiqplmzacbmeruwulurjlauejrifkfghjklzxcvbnmqwwertyuiopkdsieurnvewjeilweiskvnx"
strLen := len(randStr) - 9
var result string
for i := 0; i < lenNum; i++ {
//start := common.Rand(0, strLen)
start := php2go.Rand(0, strLen)
fmt.Println(start)
str := php2go.Substr(randStr, uint(start), 9)
result = result + " " + str
}
return result
}
func main() {
var path string
flag.StringVar(&path, "configPath", "conf", "配置文件")
......@@ -14,6 +29,5 @@ func main() {
if err := boot.Boot(path); err != nil {
fmt.Println(err)
}
service1:= service.GoodsService{}
fmt.Println(service1.GetGoodsInfoByApi("1151005920927710088,1150961641855982990,1150961724815213435"))
}
package main
import (
<<<<<<< HEAD
"bytes"
"fmt"
)
......@@ -20,4 +21,28 @@ func intsToString(values []int) string {
func main() {
fmt.Println(intsToString([]int{1, 2, 3})) // "[1, 2, 3]"
=======
"fmt"
"strconv"
)
func main() {
var a,b,c float64
a=1.69*100
b=1.7*10
c=a*b/(100*10)
//ȷ2.873
fmt.Println(c)
//fmt.Println(fmt.Sprintf("%.2f",c))
//fmt.Println(FloatRound(c,2))
}
// ȡСλ
func FloatRound(f float64, n int) float64 {
format := "%." + strconv.Itoa(n) + "f"
//fmt.Println(format)
res, _ := strconv.ParseFloat(fmt.Sprintf(format, f), 64)
return res
>>>>>>> 326ae7ed67d5d2db331dddd1277d36b8b1992b08
}
\ No newline at end of file
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