getvendorstore 测试

This commit is contained in:
苏尹岚
2020-05-08 17:51:31 +08:00
parent 232f186943
commit 8494d42960
2 changed files with 1 additions and 3 deletions

View File

@@ -642,6 +642,7 @@ func getMapCenter(storeList []*StoreExt) (lng, lat float64) {
func GetVendorStore(ctx *jxcontext.Context, vendorID int, vendorOrgCode, vendorStoreID string) (retVal *StoreExt, err error) {
if handler := CurVendorSync.GetStoreHandler(vendorID); handler != nil {
fmt.Println("test1", handler)
result, err2 := handler.ReadStore(ctx, vendorOrgCode, vendorStoreID)
if err = err2; err == nil {
retVal = &StoreExt{

View File

@@ -1,8 +1,6 @@
package jdshop
import (
"fmt"
"git.rosy.net.cn/jx-callback/business/jxutils/jxcontext"
"git.rosy.net.cn/jx-callback/business/model"
"git.rosy.net.cn/jx-callback/business/partner"
@@ -21,7 +19,6 @@ type PurchaseHandler struct {
func init() {
if api.JdShopAPI != nil {
fmt.Println("test111111111111111111111")
CurPurchaseHandler = New()
partner.RegisterPurchasePlatform(CurPurchaseHandler)
}