1234567891011121314151617181920212223242526272829303132 |
- package service
- import (
- "github.com/gogf/gf/v2/frame/g"
- "github.com/gogf/gf/v2/net/ghttp"
- )
- // InvoicingMakeRedCallBackLogic 开票回调逻辑
- func InvoicingMakeRedCallBackLogic(r *ghttp.Request) error {
- tType := r.Get("type").Int()
- switch tType {
- case 0: //红冲成功
- case 1: //失败
- case 2: //授信额度等信息
- g.Log().Info(r.Context(), "授信额度等信息")
- case 3:
- g.Log().Info(r.Context(), "活体验证已过期,未完成活体验证")
- case 4:
- g.Log().Info(r.Context(), "活体成功")
- case 5:
- g.Log().Info(r.Context(), "返回活体检测二维码的内容")
- case 9:
- g.Log().Info(r.Context(), "活体码未知错误")
- case 10:
- g.Log().Info(r.Context(), "非数电票试点纳税人,未核定数电票票种,不允许开票")
- case 11:
- g.Log().Info(r.Context(), "获取授信额度失败")
- default:
- g.Log().Info(r.Context(), "InvoicingMakeRedCallBackLogic tType:%s", tType)
- }
- return nil
- }
|