parent
f18d18d7a2
commit
4ad16ecb9d
@ -1,23 +1,17 @@
|
|||||||
package wechatoffice
|
package wechatoffice
|
||||||
|
|
||||||
import (
|
import "errors"
|
||||||
"errors"
|
|
||||||
)
|
|
||||||
|
|
||||||
// AuthGetJsapiTicketMonitor 监控api_ticket
|
// AuthGetJsapiTicketMonitor 监控api_ticket
|
||||||
func (app *App) AuthGetJsapiTicketMonitor(qdType string) error {
|
func (app *App) AuthGetJsapiTicketMonitor(qdType string) error {
|
||||||
result := app.GetCallBackIp()
|
switch qdType {
|
||||||
if len(result.Result.IpList) <= 0 {
|
case QdTypeDb:
|
||||||
switch qdType {
|
app.GetJsapiTicketDb()
|
||||||
case QdTypeDb:
|
return nil
|
||||||
app.GetJsapiTicketDb()
|
case QdTypeRdb:
|
||||||
return nil
|
app.GetJsapiTicketRDb()
|
||||||
case QdTypeRdb:
|
return nil
|
||||||
app.GetJsapiTicketRDb()
|
default:
|
||||||
return nil
|
return errors.New("驱动类型不在范围内")
|
||||||
default:
|
|
||||||
return errors.New("驱动类型不在范围内")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in new issue