1
This commit is contained in:
@@ -20,17 +20,17 @@ func init() {
|
||||
baseapi.Init(sugarLogger)
|
||||
|
||||
// 菜市
|
||||
api = New("589", "a81eb3df418d83d6a1a4b7c572156d2f", "", "")
|
||||
//api = New("589", "a81eb3df418d83d6a1a4b7c572156d2f", "", "")
|
||||
|
||||
// 果园
|
||||
//api = New("4123", "df2c88338b85f830cebce2a9eab56628", "", "")
|
||||
|
||||
//商超
|
||||
//api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_u368I2OxTY4ys4wWuVVMOQ") //token_n4TwqCntWWuvQwAawzxC0w
|
||||
//cookieStr := `
|
||||
// acctId=57396785; token=0bWbK5VbK50E2BmIhIH2zHB-am_y7mB37yXHm6RLZWx4*; wmPoiId=-1;
|
||||
//`
|
||||
//api.SetCookieWithStr(cookieStr)
|
||||
api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_u368I2OxTY4ys4wWuVVMOQ") //token_n4TwqCntWWuvQwAawzxC0w
|
||||
cookieStr := `
|
||||
acctId=57396785; token=0bWbK5VbK50E2BmIhIH2zHB-am_y7mB37yXHm6RLZWx4*; wmPoiId=-1;
|
||||
`
|
||||
api.SetCookieWithStr(cookieStr)
|
||||
}
|
||||
|
||||
func TestAccessAPI(t *testing.T) {
|
||||
|
||||
@@ -12,11 +12,13 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
MtwmSCTag = "13030000"
|
||||
MtwmC4Tag = "11010000"
|
||||
MtwmSGTag = "10010000"
|
||||
AuditTypeStore = 1 //审核类型:1-门店入驻;2-门店logo(头图)
|
||||
AuditTypeStoreLogo = 2
|
||||
MtwmSCTag = "13030000"
|
||||
MtwmC4Tag = "11010000"
|
||||
MtwmSGTag = "10010000"
|
||||
AuditTypeStore = 1 //审核类型:1-门店入驻;2-门店logo(头图)
|
||||
AuditTypeStoreLogo = 2
|
||||
MtStoreIsOnlineOffLine = 0 // 0 下线 3审核通过可上线
|
||||
MtStoreIsOnlineOnLine = 1 // 1上线 2上单
|
||||
)
|
||||
|
||||
type PoiCategoryInfo struct {
|
||||
@@ -33,7 +35,7 @@ type PoiInfo struct {
|
||||
InvoiceDescription string `json:"invoice_description,omitempt"`
|
||||
InvoiceMinPrice int `json:"invoice_min_price,omitempt"`
|
||||
InvoiceSupport int `json:"invoice_support,omitempt"`
|
||||
IsOnline int `json:"is_online,omitempt"`
|
||||
IsOnline int `json:"is_online,omitempt"` // 0-下线;1-上线;2-上单中;3-审核通过可上线。
|
||||
Latitude float64 `json:"latitude,omitempt"`
|
||||
LocationID int `json:"location_id,omitempt"`
|
||||
Longitude float64 `json:"longitude,omitempt"`
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -301,13 +301,10 @@ func (a *API) RetailBatchInitData(trackInfo, poiCode string, foodDataList []map[
|
||||
KeyAppPoiCode: poiCode,
|
||||
"food_data": string(utils.MustMarshal(foodDataList)),
|
||||
}, resultKeyMsg, trackInfo)
|
||||
|
||||
if err == nil {
|
||||
failedFoodList, err = handleRetailBatchResult(result)
|
||||
}
|
||||
if err != nil {
|
||||
globals.SugarLogger.Debugf("=============err := %v", err)
|
||||
}
|
||||
|
||||
return failedFoodList, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user