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) {
|
func GetVendorStore(ctx *jxcontext.Context, vendorID int, vendorOrgCode, vendorStoreID string) (retVal *StoreExt, err error) {
|
||||||
if handler := CurVendorSync.GetStoreHandler(vendorID); handler != nil {
|
if handler := CurVendorSync.GetStoreHandler(vendorID); handler != nil {
|
||||||
|
fmt.Println("test1", handler)
|
||||||
result, err2 := handler.ReadStore(ctx, vendorOrgCode, vendorStoreID)
|
result, err2 := handler.ReadStore(ctx, vendorOrgCode, vendorStoreID)
|
||||||
if err = err2; err == nil {
|
if err = err2; err == nil {
|
||||||
retVal = &StoreExt{
|
retVal = &StoreExt{
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
package jdshop
|
package jdshop
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
|
|
||||||
"git.rosy.net.cn/jx-callback/business/jxutils/jxcontext"
|
"git.rosy.net.cn/jx-callback/business/jxutils/jxcontext"
|
||||||
"git.rosy.net.cn/jx-callback/business/model"
|
"git.rosy.net.cn/jx-callback/business/model"
|
||||||
"git.rosy.net.cn/jx-callback/business/partner"
|
"git.rosy.net.cn/jx-callback/business/partner"
|
||||||
@@ -21,7 +19,6 @@ type PurchaseHandler struct {
|
|||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
if api.JdShopAPI != nil {
|
if api.JdShopAPI != nil {
|
||||||
fmt.Println("test111111111111111111111")
|
|
||||||
CurPurchaseHandler = New()
|
CurPurchaseHandler = New()
|
||||||
partner.RegisterPurchasePlatform(CurPurchaseHandler)
|
partner.RegisterPurchasePlatform(CurPurchaseHandler)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user