You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
441 B
24 lines
441 B
package wechatoffice
|
|
|
|
import (
|
|
"errors"
|
|
)
|
|
|
|
// AuthGetJsapiTicketMonitor 监控api_ticket
|
|
func (app *App) AuthGetJsapiTicketMonitor(qdType string) error {
|
|
result := app.GetCallBackIp()
|
|
if len(result.Result.IpList) <= 0 {
|
|
switch qdType {
|
|
case QdTypeDb:
|
|
app.GetJsapiTicketDb()
|
|
return nil
|
|
case QdTypeRdb:
|
|
app.GetJsapiTicketRDb()
|
|
return nil
|
|
default:
|
|
return errors.New("驱动类型不在范围内")
|
|
}
|
|
}
|
|
return nil
|
|
}
|