账户充值

feat/task1-c-wallet
devil_gong 2019-05-07 18:41:18 +08:00
parent 0db185661d
commit 3997c48c99
4 changed files with 10 additions and 18 deletions

View File

@ -31,9 +31,6 @@ class Rechargenotify
*/
public function notify($params = [])
{
file_put_contents(ROOT.'qqqqqq.txt', json_encode(array_merge($_GET, $_POST)));
file_put_contents(ROOT.'pppppp.txt', json_encode($params));
$ret = PayService::Notify($params);
if($ret['code'] == 0)
{

View File

@ -2,9 +2,11 @@
CREATE TABLE `s_plugins_wallet_recharge` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id',
`user_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '用户id',
`wallet_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '钱包id',
`recharge_no` char(60) NOT NULL DEFAULT '' COMMENT '充值单号',
`status` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '状态0未支付, 1已支付',
`money` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '金额',
`pay_price` decimal(10,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '支付金额',
`payment_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '支付方式id',
`payment` char(60) NOT NULL DEFAULT '' COMMENT '支付方式标记',
`payment_name` char(60) NOT NULL DEFAULT '' COMMENT '支付方式名称',
@ -14,7 +16,7 @@ CREATE TABLE `s_plugins_wallet_recharge` (
UNIQUE KEY `recharge_no` (`recharge_no`),
KEY `status` (`status`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='钱包充值 - 应用';
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='钱包充值 - 应用'
# 钱包
CREATE TABLE `s_plugins_wallet` (

View File

@ -259,7 +259,6 @@ class PayService
// 支付数据校验
$pay_name = 'payment\\'.PAYMENT_TYPE;
$ret = (new $pay_name($payment[0]['config']))->Respond(array_merge($_GET, $_POST));
file_put_contents(ROOT.'tttttt.txt', json_encode($ret));
if(!isset($ret['code']) || $ret['code'] != 0)
{
return $ret;

File diff suppressed because one or more lines are too long