This commit is contained in:
lwl0608 2024-01-08 12:40:27 +08:00
parent 537ed90d65
commit 7a55c52f0d
3 changed files with 21 additions and 3 deletions

View File

@ -77,8 +77,8 @@ func RsaDecrypt(ciphertext []byte) ([]byte, error) {
}
func TestGen(t *testing.T) {
data, _ := RsaEncrypt([]byte("lwl0608@foxmail.com"))
fmt.Println(string(data))
data, _ := RsaEncrypt([]byte("李旺林"))
//fmt.Println(string(data))
fmt.Println(base64.StdEncoding.EncodeToString(data))
origData, _ := RsaDecrypt(data)
fmt.Println(string(origData))

View File

@ -619,7 +619,7 @@ func (m *Mysql) GetOrderCountGroupByStatus(ctx *gin.Context, tx *sqlx.Tx, orderS
// 创建提现订单
func (m *Mysql) CreateWithdrawOrder(ctx *gin.Context, tx *sqlx.Tx, wOrder *dbstruct.WithdrawOrder) error {
var err error
sqlStr := "insert into " + TableOrder +
sqlStr := "insert into " + TableWithdrawOrder +
" (id, mid, did, apply_time, alipay_id, alipay_name, " +
" withdraw_dias, withdraw_money, ip, order_status, operator, op_time) " +
" values (?,?,?,?,?,?,?,?,?,?,?,?) "

View File

@ -115,3 +115,21 @@ CREATE TABLE `vas_user_unlock`
PRIMARY KEY (`id`)
);
CREATE INDEX mid_uid_product_id ON vas_user_unlock (mid, uid, product_id);
CREATE TABLE `vas_withdraw_order`
(
`id` varchar(128) NOT NULL COMMENT '订单id',
`mid` bigint DEFAULT NULL COMMENT '用户id',
`did` char(64) DEFAULT NULL COMMENT '设备id',
`apply_time` int DEFAULT NULL COMMENT '申请时间',
`alipay_id` varchar(128) DEFAULT NULL COMMENT '支付宝账号',
`alipay_name` varchar(128) DEFAULT NULL COMMENT '支付宝姓名',
`withdraw_dias` bigint DEFAULT NULL COMMENT '提现钻石数',
`withdraw_money` bigint DEFAULT NULL COMMENT '提现金额',
`ip` char(32) DEFAULT NULL COMMENT '下单时候的ip',
`order_status` tinyint DEFAULT NULL COMMENT '订单状态',
`operator` varchar(128) DEFAULT NULL COMMENT '操作的运营同学',
`op_time` int DEFAULT NULL COMMENT 'op操作时间',
PRIMARY KEY (`id`)
);