劲创营---任务项目
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

2 周前
2 周前
2 周前
2 周前
2 周前
2 周前
2 周前
2 周前
1234567891011121314151617181920212223242526272829303132333435
  1. package hdl
  2. import (
  3. "applet/app/comm/db"
  4. "applet/app/comm/e"
  5. svc2 "applet/app/comm/svc"
  6. "applet/app/operator/md"
  7. "applet/app/operator/svc"
  8. "github.com/gin-gonic/gin"
  9. )
  10. func Login(c *gin.Context) {
  11. svc.Login(c)
  12. }
  13. func FastLogin(c *gin.Context) {
  14. var args md.RegisterReq
  15. if err := c.ShouldBindJSON(&args); err != nil {
  16. e.OutErr(c, e.ERR_INVALID_ARGS)
  17. return
  18. }
  19. svc.Register(c, args)
  20. }
  21. func Sms(c *gin.Context) {
  22. svc.Sms(c)
  23. }
  24. func Base(c *gin.Context) {
  25. res := map[string]string{
  26. "enterprise_wechat_qrcode": svc2.ImageFormat(c, db.SysCfgGet(c, "camp_enterprise_wechat_qrcode")),
  27. "own_wechat_qrcode": svc2.ImageFormat(c, db.SysCfgGet(c, "camp_own_wechat_qrcode")),
  28. "icp_first_str": db.SysCfgGet(c, "camp_icp_first_str"),
  29. "icp_second_str": db.SysCfgGet(c, "camp_icp_second_str"),
  30. }
  31. e.OutSuc(c, res, nil)
  32. return
  33. }