- 修复之前将老平台同步逻辑注释掉引入的BUG

This commit is contained in:
gazebo
2019-08-14 00:20:35 +08:00
parent 18ad339e0c
commit 03e23ca0fd
7 changed files with 111 additions and 118 deletions

View File

@@ -1,31 +1,25 @@
package wsc
import (
"testing"
// func TestSyncLocalStoreCategory(t *testing.T) {
// hint, err := new(PurchaseHandler).SyncLocalStoreCategory(jxcontext.AdminCtx, nil, 100077, false)
// if err != nil {
// t.Fatal(err)
// }
// t.Log(hint)
// }
"git.rosy.net.cn/jx-callback/business/jxutils/jxcontext"
)
// func TestSyncStoreCategory(t *testing.T) {
// hint, err := new(PurchaseHandler).SyncStoreCategory(jxcontext.AdminCtx, nil, 100077, false)
// if err != nil {
// t.Fatal(err)
// }
// t.Log(hint)
// }
func TestSyncLocalStoreCategory(t *testing.T) {
hint, err := new(PurchaseHandler).SyncLocalStoreCategory(jxcontext.AdminCtx, nil, 100077, false)
if err != nil {
t.Fatal(err)
}
t.Log(hint)
}
func TestSyncStoreCategory(t *testing.T) {
hint, err := new(PurchaseHandler).SyncStoreCategory(jxcontext.AdminCtx, nil, 100077, false)
if err != nil {
t.Fatal(err)
}
t.Log(hint)
}
func TestSyncStoreSkus(t *testing.T) {
hint, err := new(PurchaseHandler).SyncStoreSkus(jxcontext.AdminCtx, nil, 100077, nil, false, true)
if err != nil {
t.Fatal(err)
}
t.Log(hint)
}
// func TestSyncStoreSkus(t *testing.T) {
// hint, err := new(PurchaseHandler).SyncStoreSkus(jxcontext.AdminCtx, nil, 100077, nil, false, true)
// if err != nil {
// t.Fatal(err)
// }
// t.Log(hint)
// }