银豹创建商品测试
This commit is contained in:
@@ -29,7 +29,6 @@ type PurchaseHandler struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
fmt.Println("test1")
|
|
||||||
if api.MtwmAPI != nil {
|
if api.MtwmAPI != nil {
|
||||||
CurPurchaseHandler = New()
|
CurPurchaseHandler = New()
|
||||||
partner.RegisterPurchasePlatform(CurPurchaseHandler)
|
partner.RegisterPurchasePlatform(CurPurchaseHandler)
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
package yb
|
package yb
|
||||||
|
|
||||||
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"
|
||||||
"git.rosy.net.cn/jx-callback/business/partner/putils"
|
"git.rosy.net.cn/jx-callback/business/partner/putils"
|
||||||
|
"git.rosy.net.cn/jx-callback/globals/api"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@@ -19,11 +18,10 @@ type PurchaseHandler struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
// if api.YinBaoAPI != nil {
|
if api.YinBaoAPI != nil {
|
||||||
fmt.Println("test2")
|
CurPurchaseHandler = New()
|
||||||
CurPurchaseHandler = New()
|
partner.RegisterPurchasePlatform(CurPurchaseHandler)
|
||||||
partner.RegisterPurchasePlatform(CurPurchaseHandler)
|
}
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func New() (obj *PurchaseHandler) {
|
func New() (obj *PurchaseHandler) {
|
||||||
|
|||||||
3
main.go
3
main.go
@@ -8,6 +8,8 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"git.rosy.net.cn/jx-callback/business/partner/purchase/yb"
|
||||||
|
|
||||||
"github.com/astaxie/beego"
|
"github.com/astaxie/beego"
|
||||||
|
|
||||||
"git.rosy.net.cn/baseapi/platformapi/dingdingapi"
|
"git.rosy.net.cn/baseapi/platformapi/dingdingapi"
|
||||||
@@ -74,6 +76,7 @@ func Init() {
|
|||||||
if globals.IsProductEnv() {
|
if globals.IsProductEnv() {
|
||||||
ebai.CurPurchaseHandler.StartRefreshComment()
|
ebai.CurPurchaseHandler.StartRefreshComment()
|
||||||
mtwm.CurPurchaseHandler.StartRefreshComment()
|
mtwm.CurPurchaseHandler.StartRefreshComment()
|
||||||
|
yb.CurPurchaseHandler.StartRefreshComment()
|
||||||
}
|
}
|
||||||
misc.Init()
|
misc.Init()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user