You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

bind.go 482 B

3 years ago
3 years ago
1234567891011121314151617181920212223
  1. package wechat
  2. import (
  3. "code.gitea.io/gitea/models"
  4. )
  5. func BindWechat(userId int64, wechatOpenId string) error {
  6. return models.BindWechatOpenId(userId, wechatOpenId)
  7. }
  8. func UnbindWechat(userId int64) error {
  9. return models.UnbindWechatOpenId(userId)
  10. }
  11. func IsUserFinishBind(sceneStr string) bool {
  12. //val, _ := redis_client.Get(redis_key.WechatBindingUserIdKey(sceneStr))
  13. //if val == "" {
  14. // return false
  15. //}
  16. //userId, _ := strconv.ParseInt(val, 10, 64)
  17. return false
  18. }