|
|
@ -80,7 +80,7 @@ func TestCountDownFormat(t *testing.T) { |
|
|
|
} |
|
|
|
|
|
|
|
func login() string { |
|
|
|
loginUrl := "https://api.ouxuanhudong.com/PcClient/Client/UserCtl/entryLogin?activity_id=410&account=18926327519&password=123456" |
|
|
|
loginUrl := "https://api.ouxuanhudong.com/PcClient/Client/UserCtl/entryLogin?activity_id=411&account=SA45005&password=aodi666" |
|
|
|
resp, _ := HttpRequest.NewRequest().Get(loginUrl) |
|
|
|
var body = make(map[string]interface{}, 0) |
|
|
|
resp.Json(&body) |
|
|
@ -99,9 +99,9 @@ var incr = new(atomic.Int32) |
|
|
|
func order(token string) { |
|
|
|
orderUrl := "https://api.ouxuanhudong.com/PcClient/Client/OrderEntryCtl/manualOrder" |
|
|
|
resp, _ := HttpRequest.NewRequest().Post(orderUrl, map[string]interface{}{ |
|
|
|
"name": "1222", |
|
|
|
"phone": "22222222", |
|
|
|
"goods": `[{"good_id":92,"good_num":1}]`, |
|
|
|
"name": RandomStr(4), |
|
|
|
"phone": RandomInt(11), |
|
|
|
"goods": `[{"good_id":96,"good_num":1}]`, |
|
|
|
"token": token, |
|
|
|
}) |
|
|
|
var data = make(map[string]interface{}) |
|
|
|