getvendorstore 测试
This commit is contained in:
@@ -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{
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user