8 Commits

Author SHA1 Message Date
技术老胡
7f77c5a1dd 更新文档 2024-12-11 17:28:31 +08:00
技术老胡
d61ec241f1 更新文件 2024-12-11 16:34:58 +08:00
技术老胡
4aa9feb5be 更新文件 2024-12-11 16:34:32 +08:00
技术老胡
16d4b989d8 更新文件 2024-12-11 16:30:11 +08:00
技术老胡
8e5981f640 更新文件 2024-12-11 16:27:27 +08:00
技术老胡
8a52346425 修改支付测试逻辑,核对支付方式 2024-12-11 16:23:21 +08:00
技术老胡
21db31e8a0 更新文件 2024-12-11 15:37:35 +08:00
技术老胡
b5d128d6b4 修复获取器空键名报错 2024-12-11 15:28:32 +08:00
14 changed files with 14 additions and 174 deletions

View File

@@ -103,6 +103,10 @@ V免签是一款开源免费适用于个人收款使用的收款程序原理
# 开源声明
## 演示站点
[码支付](http://demo.stspwsc.com/) http://demo.stspwsc.com/
## 内置插件
码支付收款管理系统开源免费使用,支付插件有**免费**和**付费**版本,按需使用购买
@@ -367,7 +371,6 @@ V免签是一款开源免费适用于个人收款使用的收款程序原理
添加应用转发规则,**微信**和**支付宝**需要分别设置
![](assets/20241204_172656_image.png)
**具体设置**

View File

@@ -1 +0,0 @@
deny from all

View File

@@ -1,85 +0,0 @@
<?php
declare (strict_types = 1);
namespace app\controller;
use think\Request;
class SystemController
{
/**
* 显示资源列表
*
* @return \think\Response
*/
public function index()
{
return '系统设置';
}
/**
* 显示创建资源表单页.
*
* @return \think\Response
*/
public function create()
{
//
}
/**
* 保存新建的资源
*
* @param \think\Request $request
* @return \think\Response
*/
public function save(Request $request)
{
//
}
/**
* 显示指定的资源
*
* @param int $id
* @return \think\Response
*/
public function read($id)
{
//
}
/**
* 显示编辑资源表单页.
*
* @param int $id
* @return \think\Response
*/
public function edit($id)
{
//
}
/**
* 保存更新的资源
*
* @param \think\Request $request
* @param int $id
* @return \think\Response
*/
public function update(Request $request, $id)
{
//
}
/**
* 删除指定资源
*
* @param int $id
* @return \think\Response
*/
public function delete($id)
{
//
}
}

View File

@@ -17,6 +17,7 @@ class Order extends BaseModel
{
$my_time = time();
$channel = self::setChannel($data['pid'], $data['type']);
if(!$channel) return false;
$new_order = [
// 订单号
'order_id' => self::createOrderID('H'),
@@ -124,6 +125,7 @@ class Order extends BaseModel
foreach ($channel_infos as $key => $value) {
$check_wx = preg_match('/^wxpay\d+#/i', $value->channel);
$check_ali = preg_match('/^alipay\d+#/i', $value->channel);
$channel_info = null;
if ($check_wx && $type === 'wxpay') {
$channel_info = $channel_infos[$key];
break;
@@ -138,6 +140,7 @@ class Order extends BaseModel
break;
}
}
if(!$channel_info) return [];
// 选取收款通道
$patt = PayAccount::find($channel_info->account_id);
$channel = ['aid' => $channel_info->account_id, 'cid' => $channel_info->id, 'patt' => $patt->getData('pattern')];

View File

@@ -37,7 +37,7 @@ class PayAccount extends BaseModel
foreach ($payplugin_config as $config) {
$option[$config['platform']] = $config['name'];
}
return $option[$value];
return isset($option[$value]) ? $option[$value] : '[已卸载,请停用]';
}
public function getPatternAttr($value)
{

2
config/payconfig/.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
*
!.gitignore

1
extend/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
/payclient

View File

@@ -23,7 +23,7 @@ class ImgCaptcha
return $captcha;
}
// 请求外部资源
private function getHttpResponse($url, $header = [], $post = null, $timeout = 10)
private static function getHttpResponse($url, $header = [], $post = null, $timeout = 10)
{
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);

Binary file not shown.

Binary file not shown.

2
runtime/.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
*
!.gitignore

View File

@@ -1 +0,0 @@
1733190738

File diff suppressed because one or more lines are too long

View File

@@ -1 +0,0 @@
{"code":0,"msg":"没有新订单"}