|
@@ -4,7 +4,6 @@ import (
|
|
|
logger "eta/eta_mini_ht_api/common/component/log"
|
|
|
"eta/eta_mini_ht_api/common/exception"
|
|
|
"eta/eta_mini_ht_api/controllers"
|
|
|
- "eta/eta_mini_ht_api/service/auth"
|
|
|
)
|
|
|
|
|
|
|
|
@@ -20,13 +19,19 @@ func (a *AuthController) BindGzh(code string) {
|
|
|
return result, exception.New(exception.WeChatCodeEmpty)
|
|
|
}
|
|
|
|
|
|
- err = auth.BindWxGzh(code)
|
|
|
- if err != nil {
|
|
|
- logger.Error("绑定公众号失败:%v", err)
|
|
|
- a.FailedResult("绑定公众号失败", result)
|
|
|
- return
|
|
|
- }
|
|
|
- a.SuccessResult("绑定成功", nil, result)
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
return
|
|
|
})
|
|
|
}
|
|
|
+
|
|
|
+type IsBindGzhRes struct {
|
|
|
+ IsBind bool `json:"isBind"`
|
|
|
+}
|