劲创营---任务项目
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 

36 řádky
866 B

  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. }