This commit is contained in:
suyl
2021-09-09 13:56:19 +08:00
parent d70cb1116b
commit 57afaf5c5b
2 changed files with 7 additions and 4 deletions

View File

@@ -37,6 +37,9 @@ func QuerySecretNoRemain(city string) (b bool, err error) {
//购买号码
func BuySecretNo(ctx *jxcontext.Context, poolKey, city string) (err error) {
if poolKey == "" {
return fmt.Errorf("该品牌未建立号码池,请先在阿里云上建立号码池,再联系技术!")
}
if b, err := QuerySecretNoRemain(city); err != nil || !b {
return fmt.Errorf("所选地区【%s】已经没有号码余量了请联系阿里的人增加", city)
}