终极测试
This commit is contained in:
@@ -291,8 +291,7 @@ func (v *VendorSync) SyncStore2(ctx *jxcontext.Context, db *dao.DaoDB, vendorIDs
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if err = handler.UpdateStore(db, storeMap.StoreID, userName); err == nil {
|
if err = handler.UpdateStore(db, storeMap.StoreID, userName); err == nil {
|
||||||
storeMap.SyncStatus = 0
|
resultList = append(resultList, 1)
|
||||||
_, err = dao.UpdateEntity(db, storeMap, model.FieldSyncStatus)
|
|
||||||
} else {
|
} else {
|
||||||
failedList = putils.GetErrMsg2FailedSingleList(nil, err, storeMap.StoreID, model.VendorChineseNames[storeMap.VendorID], "更新门店")
|
failedList = putils.GetErrMsg2FailedSingleList(nil, err, storeMap.StoreID, model.VendorChineseNames[storeMap.VendorID], "更新门店")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,12 +4,12 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"io/ioutil"
|
||||||
|
"net/http"
|
||||||
"regexp"
|
"regexp"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.rosy.net.cn/jx-callback/business/jxutils/smsmsg"
|
|
||||||
|
|
||||||
"git.rosy.net.cn/jx-callback/business/auth2/authprovider/weixin"
|
"git.rosy.net.cn/jx-callback/business/auth2/authprovider/weixin"
|
||||||
"git.rosy.net.cn/jx-callback/business/partner/delivery"
|
"git.rosy.net.cn/jx-callback/business/partner/delivery"
|
||||||
"github.com/360EntSecGroup-Skylar/excelize"
|
"github.com/360EntSecGroup-Skylar/excelize"
|
||||||
@@ -1519,9 +1519,17 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) {
|
|||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
err = smsmsg.SendSMSMsg([]string{"17096577102,531"}, globals.SMSSignName, globals.SMSNewUserOrderTemplate, map[string]interface{}{
|
request, _ := http.NewRequest(http.MethodGet, "https://stores.shop.jd.com/stores/updateStoreStatus?storeId=24332466&storeStatus=1", nil)
|
||||||
"tel": "123",
|
c := &http.Cookie{
|
||||||
}, nil)
|
Name: "thor",
|
||||||
|
Value: "80FAF09E9A09B6E618A68057BDFCFCB8C86E8252DC9F7D3B34572625904FBA0AB6BF053A5325612EC0407791BB05F5301356E71E8B282C40C06D0B5DF3439DEECB102A78FAFF7AC0FC4E2D1FA8DD8BBAE1A011E50B5C74F1870AD982D7BF453F470F31F2241B73AC4C25485025C2ABEBC8A538AF7257824D2FAEE300A1435175B0B451FB5C19B78D729FC83152CA3BAF",
|
||||||
|
}
|
||||||
|
request.AddCookie(c)
|
||||||
|
client := &http.Client{}
|
||||||
|
fmt.Println("test1", request.URL)
|
||||||
|
response, _ := client.Do(request)
|
||||||
|
defer response.Body.Close()
|
||||||
|
bodyData, _ := ioutil.ReadAll(response.Body)
|
||||||
|
fmt.Println("test1", string(bodyData))
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user