This commit is contained in:
邹宗楠
2024-02-02 10:40:55 +08:00
parent ae90c597b2
commit 67c8dec105
6 changed files with 11 additions and 35 deletions

View File

@@ -8,7 +8,7 @@ import (
)
// 京西速食(蔬菜)
var token1 = `{"access_token":"b8dbed2b-090d-4719-88b9-7d061595bf58","expires_in":1704909356,"scope":"SCOPE","shop_id":57939570,"shop_name":"京西菜市速食","refresh_token":"fa1028c8-2c3e-41b5-992d-a92bdc17ab0c","authority_id":""}`
var token1 = `{"access_token":"d7501629-6aa4-4a6d-8fe1-1a2b6eb2e127","expires_in":1706715675,"scope":"SCOPE","shop_id":57939570,"shop_name":"京西菜市速食","refresh_token":"dd4474eb-2857-43da-9ff9-9b8576819715","authority_id":""}`
// 美好菜市
//var token1 = `{"access_token":"9a315a03-c737-4a82-ae52-c9a6ce827007","expires_in":1699490747,"scope":"SCOPE","shop_id":68032645,"shop_name":"美好菜市","refresh_token":"8334c006-5301-4d25-911b-4d8cc7b70ebb","authority_id":""}`

View File

@@ -10,7 +10,7 @@ import (
)
func TestApi(t *testing.T) {
result, err := a.CreateToken("7cfe00c4-f8f0-4f93-992d-baeecd3bef5d")
result, err := a.CreateToken("28d698bb-fb04-4904-8f3f-7cfdca819ce5")
globals.SugarLogger.Debugf("%v", utils.Format4Output(result, false))
globals.SugarLogger.Debugf("%v", utils.Format4Output(err, false))
globals.SugarLogger.Debugf("%v", utils.Format4Output(a, false))

View File

@@ -113,13 +113,13 @@ func TestEditStoreCommodity2(t *testing.T) {
// 解密购买用户电话,名字,地址
func TestBatchDecrypt(t *testing.T) {
orderID := "6919995408850359976"
orderID := "6926727284960007376"
order, err := a.GetTiktokOrderDetail(orderID)
if err != nil || order == nil {
globals.SugarLogger.Debugf("GetTiktokOrderDetail err := %s", utils.Format4Output(order, false))
return
}
name, tel, address, _ := a.OrderUserInfoDecrypt(orderID, order.EncryptPostReceiver, order.EncryptPostTel, order.PostAddr.EncryptDetail)
name, tel, address, err := a.OrderUserInfoDecrypt(orderID, order.EncryptPostReceiver, order.EncryptPostTel, order.PostAddr.EncryptDetail)
fmt.Println(name)
fmt.Println(tel)
fmt.Println(address)