1
This commit is contained in:
@@ -20,14 +20,14 @@ func init() {
|
|||||||
baseapi.Init(sugarLogger)
|
baseapi.Init(sugarLogger)
|
||||||
|
|
||||||
// 菜市
|
// 菜市
|
||||||
api = New("589", "a81eb3df418d83d6a1a4b7c572156d2f", "", "")
|
//api = New("589", "a81eb3df418d83d6a1a4b7c572156d2f", "", "")
|
||||||
|
|
||||||
// 果园
|
// 果园
|
||||||
//api = New("4123", "df2c88338b85f830cebce2a9eab56628", "", "")
|
//api = New("4123", "df2c88338b85f830cebce2a9eab56628", "", "")
|
||||||
|
|
||||||
//商超
|
//商超
|
||||||
//api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_izAHEkoEl4lV-w4JdJFNww") //token_n4TwqCntWWuvQwAawzxC0w
|
//api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_izAHEkoEl4lV-w4JdJFNww") //token_n4TwqCntWWuvQwAawzxC0w
|
||||||
//api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_r36FEse6_ywebQI65FNNWA") //token_n4TwqCntWWuvQwAawzxC0w
|
api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_r36FEse6_ywebQI65FNNWA") //token_n4TwqCntWWuvQwAawzxC0w
|
||||||
cookieStr := `
|
cookieStr := `
|
||||||
acctId=57396785; token=0bWbK5VbK50E2BmIhIH2zHB-am_y7mB37yXHm6RLZWx4*; wmPoiId=-1;
|
acctId=57396785; token=0bWbK5VbK50E2BmIhIH2zHB-am_y7mB37yXHm6RLZWx4*; wmPoiId=-1;
|
||||||
`
|
`
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ func TestPoiGetIDs(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestPoiMGet(t *testing.T) {
|
func TestPoiMGet(t *testing.T) {
|
||||||
result, err := api.PoiMGet([]string{"18822904"})
|
result, err := api.PoiMGet([]string{"18172253"})
|
||||||
t.Log(utils.Format4Output(result, false))
|
t.Log(utils.Format4Output(result, false))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
|
|||||||
@@ -227,7 +227,7 @@ func TestDeliveryTrajectory(t *testing.T) {
|
|||||||
|
|
||||||
func TestQueryBillList(t *testing.T) {
|
func TestQueryBillList(t *testing.T) {
|
||||||
queryData := time.Now()
|
queryData := time.Now()
|
||||||
create := time.Date(queryData.Year(), queryData.Month(), queryData.Day()-7, 0, 0, 0, 0, queryData.Location())
|
create := time.Date(queryData.Year(), queryData.Month(), queryData.Day()-20, 0, 0, 0, 0, queryData.Location())
|
||||||
end := time.Date(queryData.Year(), queryData.Month(), queryData.Day(), 23, 59, 59, 59, queryData.Location())
|
end := time.Date(queryData.Year(), queryData.Month(), queryData.Day(), 23, 59, 59, 59, queryData.Location())
|
||||||
createTime := util.LocalTime(create)
|
createTime := util.LocalTime(create)
|
||||||
endTime := util.LocalTime(end)
|
endTime := util.LocalTime(end)
|
||||||
@@ -235,7 +235,7 @@ func TestQueryBillList(t *testing.T) {
|
|||||||
TxdBillListGetRequest: &domain591.AlibabaWdkBillListTxdBillListGetRequest{
|
TxdBillListGetRequest: &domain591.AlibabaWdkBillListTxdBillListGetRequest{
|
||||||
EndBillDate: &endTime,
|
EndBillDate: &endTime,
|
||||||
StartBillDate: &createTime,
|
StartBillDate: &createTime,
|
||||||
ShopCode: utils.String2Pointer("JX667321"),
|
ShopCode: utils.String2Pointer("JX668429"),
|
||||||
PageSize: utils.Int64ToPointer(200),
|
PageSize: utils.Int64ToPointer(200),
|
||||||
PageIndex: utils.Int64ToPointer(1),
|
PageIndex: utils.Int64ToPointer(1),
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user