debug AppKey2OrgCode

This commit is contained in:
gazebo
2019-12-16 09:21:25 +08:00
parent 0ea872ab39
commit f1a7440e3e
2 changed files with 7 additions and 1 deletions

View File

@@ -24,7 +24,7 @@ func init() {
func getAPI(appOrgCode string) (apiObj *jdapi.API) {
if appOrgCode == "" {
globals.SugarLogger.Warnf("getAPI appOrgCode is empty")
// globals.SugarLogger.Warnf("getAPI appOrgCode is empty")
}
return partner.CurAPIManager.GetAPI(model.VendorIDJD, appOrgCode).(*jdapi.API)
}
@@ -42,6 +42,9 @@ func AppKey2OrgCode(appKey string) (vendorOrgCode string) {
break
}
}
if vendorOrgCode == "" {
globals.SugarLogger.Warnf("AppKey2OrgCode appKey:%s get empty vendorOrgCode", appKey)
}
return vendorOrgCode
}