Files
baseapi/platformapi/tao_vegetable/afs_test.go
2025-11-21 09:09:09 +08:00

42 lines
1.7 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package tao_vegetable
import (
"fmt"
domain2 "git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability3156/domain"
request2 "git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability3156/request"
"git.rosy.net.cn/baseapi/utils"
"git.rosy.net.cn/jx-callback/globals"
"testing"
)
func TestAgreeUserCancel(t *testing.T) {
param := &request2.AlibabaTclsAelophyRefundAgreeRequest{
StoreId: utils.String2Pointer("JX668594"),
OutOrderId: utils.String2Pointer("1927716386361804887"),
RefundId: utils.String2Pointer("1000010813678250044"),
AuditMemo: utils.String2Pointer("商户同意退款"),
SubRefundList: &[]domain2.AlibabaTclsAelophyRefundAgreeSubrefundlist{
{OutSubOrderId: utils.String2Pointer("1927716386361804887"), RefundFee: utils.Int64ToPointer(300)},
},
OrderFrom: utils.Int64ToPointer(utils.Str2Int64(TaoVegetableChannelCode)),
}
err := apiTao.AgreeUserCancel(param)
globals.SugarLogger.Debugf("%v", err)
}
func TestDiseAgreeCancel(t *testing.T) {
param := &request2.AlibabaTclsAelophyRefundDisagreeRequest{
RefundId: utils.String2Pointer("1000010805204700044"),
RejectReason: utils.String2Pointer("就不给你退"),
OrderFrom: utils.Int64ToPointer(utils.Str2Int64(TaoVegetableChannelCode)),
}
err := apiTao.DisAgreeUserCancel(param)
globals.SugarLogger.Debugf("err := %v", err)
}
func TestLen(t *testing.T) {
fmt.Println(len("【平台推荐】\\u0026【官方认证】\\u0026【品质联盟】——请各位顾客放心下单本店线下实体经营十余年在此承诺坏菜包赔绝不出售隔夜菜若出现错送或者质量问题请相信我们不是故意的您可第一时间与我们联系我们一定竭诚为您服务感谢您的信任谢谢"))
}