银豹创建商品测试

This commit is contained in:
苏尹岚
2020-03-20 17:54:02 +08:00
parent 726b5e176c
commit a0d71c970c
3 changed files with 8 additions and 8 deletions

View File

@@ -29,7 +29,6 @@ type PurchaseHandler struct {
}
func init() {
fmt.Println("test1")
if api.MtwmAPI != nil {
CurPurchaseHandler = New()
partner.RegisterPurchasePlatform(CurPurchaseHandler)

View File

@@ -1,12 +1,11 @@
package yb
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"
"git.rosy.net.cn/jx-callback/business/partner/putils"
"git.rosy.net.cn/jx-callback/globals/api"
)
var (
@@ -19,11 +18,10 @@ type PurchaseHandler struct {
}
func init() {
// if api.YinBaoAPI != nil {
fmt.Println("test2")
CurPurchaseHandler = New()
partner.RegisterPurchasePlatform(CurPurchaseHandler)
// }
if api.YinBaoAPI != nil {
CurPurchaseHandler = New()
partner.RegisterPurchasePlatform(CurPurchaseHandler)
}
}
func New() (obj *PurchaseHandler) {

View File

@@ -8,6 +8,8 @@ import (
"os"
"time"
"git.rosy.net.cn/jx-callback/business/partner/purchase/yb"
"github.com/astaxie/beego"
"git.rosy.net.cn/baseapi/platformapi/dingdingapi"
@@ -74,6 +76,7 @@ func Init() {
if globals.IsProductEnv() {
ebai.CurPurchaseHandler.StartRefreshComment()
mtwm.CurPurchaseHandler.StartRefreshComment()
yb.CurPurchaseHandler.StartRefreshComment()
}
misc.Init()
}