修改一些BUG

This commit is contained in:
技术老胡 2024-08-31 17:18:46 +08:00
parent 0f3fad95c8
commit 31354de6f5
8 changed files with 10 additions and 78 deletions

View File

@ -211,7 +211,7 @@ class PayController
}
}
}
// 获取收款通知,提交收款订单明细
// [定时任务]获取收款明细,提交收款通知[本地版]
public function checkPayResult(Request $request)
{
$req_info = $request->get();

View File

@ -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);

View File

@ -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;
}

View File

@ -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',
),
]
];

View File

@ -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,
),
]
];

View File

@ -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

Binary file not shown.

View File

@ -1 +1 @@
{"code":1,"msg":"\u67091\u4e2a\u65b0\u8ba2\u5355","orders":[{"id":27409,"pid":1001,"aid":30,"cid":31,"patt":0}]}
{"code":0,"msg":"没有新订单"}