aa
This commit is contained in:
@@ -29,7 +29,7 @@ type PurchaseHandler struct {
|
||||
}
|
||||
|
||||
func init() {
|
||||
if api.MtwmAPI != nil {
|
||||
if api.MtwmAPI != nil || api.Mtwm2API != nil {
|
||||
CurPurchaseHandler = New()
|
||||
partner.RegisterPurchasePlatform(CurPurchaseHandler)
|
||||
}
|
||||
@@ -223,3 +223,10 @@ func (p *PurchaseHandler) getUploadImgPoiCode() (poiCode string) {
|
||||
}
|
||||
return poiCode
|
||||
}
|
||||
|
||||
func getAPI(appOrgCode string) (apiObj *mtwmapi.API) {
|
||||
if appOrgCode == "" {
|
||||
globals.SugarLogger.Warnf("getAPI appOrgCode is empty")
|
||||
}
|
||||
return partner.CurAPIManager.GetAPI(model.VendorIDMTWM, appOrgCode).(*mtwmapi.API)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user