|
@@ -146,13 +146,21 @@ func (sc *SubscribeController) SubscribeProduct() {
|
|
|
}
|
|
|
return
|
|
|
}
|
|
|
- //开户中
|
|
|
- if officialUser.AccountStatus == "opening" {
|
|
|
+ switch officialUser.AccountStatus {
|
|
|
+ case "unopen":
|
|
|
+ result.Ret = AccountNotOpen
|
|
|
+ sc.FailedResult("用户未开通账户", result)
|
|
|
+ return
|
|
|
+ case "opening":
|
|
|
result.Ret = AccountOpening
|
|
|
sc.FailedResult("用户开户中", result)
|
|
|
return
|
|
|
+ case "opened":
|
|
|
+ default:
|
|
|
+ err = exception.New(exception.IllegalAccountStatus)
|
|
|
+ sc.FailedResult(result.Msg, result)
|
|
|
+ return
|
|
|
}
|
|
|
-
|
|
|
//证件信息是否过期
|
|
|
if !officialUser.IDValid {
|
|
|
result.Ret = IDExpired
|