feat:自动补货/手动采购逻辑修改:批量获取-》打包-》获取Token列表
This commit is contained in:
@@ -394,6 +394,10 @@ func TestRockService_StatsAndPurchase(t *testing.T) {
|
||||
|
||||
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
if r.URL.Path == "/api/user/dashboard" {
|
||||
writeRockDashboardJSON(w, 999, "20.0")
|
||||
return
|
||||
}
|
||||
if r.URL.Path == "/api/me" {
|
||||
_ = json.NewEncoder(w).Encode(map[string]interface{}{
|
||||
"user": map[string]interface{}{
|
||||
|
||||
Reference in New Issue
Block a user