mirror of
https://gitee.com/technical-laohu/mpay.git
synced 2025-09-19 02:06:38 +08:00
修改一些BUG
This commit is contained in:
parent
0f3fad95c8
commit
31354de6f5
@ -211,7 +211,7 @@ class PayController
|
||||
}
|
||||
}
|
||||
}
|
||||
// 获取收款通知,提交收款订单明细
|
||||
// [定时任务]获取收款明细,提交收款通知[本地版]
|
||||
public function checkPayResult(Request $request)
|
||||
{
|
||||
$req_info = $request->get();
|
||||
|
@ -65,6 +65,10 @@ class PayManageController extends BaseController
|
||||
$info = $this->request->post();
|
||||
$pid = $this->request->session('pid');
|
||||
$info['pid'] = $pid;
|
||||
$check_acc = PayAccount::where(['account' => $info['account'], 'pid' => $pid])->find();
|
||||
if ($check_acc) {
|
||||
return \json(\backMsg(1, '账号已存在'));
|
||||
}
|
||||
$acc = PayAccount::create($info);
|
||||
if ($acc) {
|
||||
$this->createAccountConfig($acc);
|
||||
|
@ -120,7 +120,7 @@ class Order extends BaseModel
|
||||
return [];
|
||||
}
|
||||
$patt = PayAccount::find($channel_info->account_id);
|
||||
$channel = ['aid' => $channel_info->account_id, 'cid' => $channel_info->id, 'patt' => $patt->pattern];
|
||||
$channel = ['aid' => $channel_info->account_id, 'cid' => $channel_info->id, 'patt' => $patt->getData('pattern')];
|
||||
PayChannel::update(['last_time' => self::getFormatTime(), 'id' => $channel['cid']]);
|
||||
return $channel;
|
||||
}
|
||||
|
@ -1,33 +0,0 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | 支付监听配置,一个文件,一个账号
|
||||
// +----------------------------------------------------------------------
|
||||
return [
|
||||
// 用户账号配置
|
||||
'user' => [
|
||||
'pid' => 1001,
|
||||
'key' => '7ImzF6Rf8OciQcmRJv8oTNBwIp6uqF0p'
|
||||
],
|
||||
// 收款平台账号配置
|
||||
'pay' => [
|
||||
// 账号id
|
||||
'aid' => 39,
|
||||
// 收款平台
|
||||
'platform' => 'sqbpay',
|
||||
// 账号
|
||||
'account' => '18727623516',
|
||||
// 密码
|
||||
'password' => '123456',
|
||||
// 订单查询参数配置
|
||||
'query' => array (
|
||||
'date_end' => NULL,
|
||||
'date_start' => NULL,
|
||||
'page' => 1,
|
||||
'page_size' => 10,
|
||||
'upayQueryType' => 0,
|
||||
'status' => '2000',
|
||||
'store_sn' => '',
|
||||
'type' => '30',
|
||||
),
|
||||
]
|
||||
];
|
@ -1,39 +0,0 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | 支付监听配置,一个文件,一个账号
|
||||
// +----------------------------------------------------------------------
|
||||
return [
|
||||
// 用户账号配置
|
||||
'user' => [
|
||||
'pid' => 1001,
|
||||
'key' => '953c4d682d9ab148277b76a06e215ce7'
|
||||
],
|
||||
// 收款平台账号配置
|
||||
'pay' => [
|
||||
// 账号id
|
||||
'aid' => 40,
|
||||
// 收款平台
|
||||
'platform' => 'mqpay',
|
||||
// 收款平台
|
||||
'payclass' => 'MaQian',
|
||||
// 账号
|
||||
'account' => '18657945333',
|
||||
// 密码
|
||||
'password' => 'Aa12345678',
|
||||
// 订单查询参数配置
|
||||
'query' => array (
|
||||
'terminalType' => '',
|
||||
'payType' => '',
|
||||
'payMode' => '',
|
||||
'tradeStatus' => '1',
|
||||
'tradeNo' => '',
|
||||
'storeId' => '',
|
||||
'page' => 1,
|
||||
'rows' => 10,
|
||||
'endDate' => NULL,
|
||||
'endTime' => NULL,
|
||||
'startDate' => NULL,
|
||||
'startTime' => NULL,
|
||||
),
|
||||
]
|
||||
];
|
@ -4,15 +4,15 @@ class MpayClass
|
||||
{
|
||||
private $pid;
|
||||
private $key;
|
||||
private $host = env('WEB_HOST', 'http://localhost');
|
||||
private $host = 'https://mpay.zhaidashi.cn/';
|
||||
private $check_neworder_url;
|
||||
private $submit_records_url;
|
||||
function __construct($config)
|
||||
{
|
||||
$this->pid = $config['pid'];
|
||||
$this->key = $config['key'];
|
||||
$this->check_neworder_url = $this->host . '/order.php';
|
||||
$this->submit_records_url = $this->host . '/payHeart';
|
||||
$this->check_neworder_url = $this->host . 'order.php';
|
||||
$this->submit_records_url = $this->host . 'payHeart';
|
||||
}
|
||||
// 查询新订单
|
||||
public function orderHeart()
|
||||
|
BIN
mpay01.zip
Normal file
BIN
mpay01.zip
Normal file
Binary file not shown.
@ -1 +1 @@
|
||||
{"code":1,"msg":"\u67091\u4e2a\u65b0\u8ba2\u5355","orders":[{"id":27409,"pid":1001,"aid":30,"cid":31,"patt":0}]}
|
||||
{"code":0,"msg":"没有新订单"}
|
Loading…
Reference in New Issue
Block a user