controllers

package
Version: v0.0.0-...-fab86cd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2019 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

**************************************************

** @Desc : This file for ...收银台对接快一
** @Time : 2018-8-27 13:50
** @Author : Joker
** @File : home_action
** @Last Modified by : Joker
** @Last Modified time: 2018-08-29 17:59:48
** @Software: GoLand

***************************************************

**************************************************

** @Desc : This file for ...
** @Time : 2019/12/18 17:16
** @Author : yuebin
** @File : pay
** @Last Modified by : yuebin
** @Last Modified time: 2019/12/18 17:16
** @Software: GoLand

***************************************************

**************************************************

** @Desc : 模拟商户扫码支付请求
** @Time : 2019/10/26 9:48
** @Author : yuebin
** @File : scan
** @Last Modified by : yuebin
** @Last Modified time: 2019/10/26 9:48
** @Software: GoLand

***************************************************

Index

Constants

View Source
const (
	HOST       = "http://localhost:10081"
	SCAN_HOST  = HOST + "/gateway/scan"
	H5_HOST    = HOST + "/gateway/h5"
	SYT_HOST   = HOST + "/gateway/syt"
	FAST_HOST  = HOST + "/gateway/fast"
	NOTIFY_URL = HOST + "/shop/notify"
	RETURN_URL = HOST + "/shop/return"
	PAY_KEY    = "kkkkbmrb9gijhrt0th4naoag"
	PAY_SERCET = "ssssbmrb9gijhrt0th4naob0"
)

Variables

This section is empty.

Functions

func GenerateQrcode

func GenerateQrcode(codeUrl, qrcodePathName string)

Types

type DataJSON

type DataJSON struct {
	Code int
	Msg  string
}

type HomeAction

type HomeAction struct {
	beego.Controller
}

func (*HomeAction) ErrorPage

func (c *HomeAction) ErrorPage()

func (*HomeAction) ShowHome

func (c *HomeAction) ShowHome()

加载首页及数据

type PayController

type PayController struct {
	beego.Controller
}

func (*PayController) Pay

func (c *PayController) Pay()

type ResponseJSON

type ResponseJSON struct {
	Code    int
	Msg     string
	OrderNo string
	Url     string
	Qrcode  string
}

type ScanShopController

type ScanShopController struct {
	beego.Controller
	Params map[string]string
}

func (*ScanShopController) Prepare

func (c *ScanShopController) Prepare()

func (*ScanShopController) ScanRender

func (c *ScanShopController) ScanRender()

func (*ScanShopController) Shop

func (c *ScanShopController) Shop(requestHost string) *ResponseJSON

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL