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

25 line
462 B

  1. package hdl
  2. import (
  3. "applet/app/e"
  4. "applet/app/pay/svc"
  5. "github.com/gin-gonic/gin"
  6. )
  7. // PayStatus 整合所有支付状态
  8. func PayStatus(c *gin.Context) {
  9. orderType := c.Param("orderType")
  10. //payMethod := c.Param("payMethod")
  11. if orderType == "" {
  12. e.OutErr(c, e.ERR_INVALID_ARGS)
  13. return
  14. }
  15. r, ok := svc.PayStatusFuncList[orderType]
  16. if !ok {
  17. e.OutErr(c, e.ERR, e.NewErr(500, "不存在该支付方式"))
  18. return
  19. }
  20. e.OutSuc(c, r, nil)
  21. return
  22. }