mirror of
https://gitee.com/technical-laohu/mpay.git
synced 2025-11-08 03:33:43 +08:00
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7f77c5a1dd | ||
|
|
d61ec241f1 | ||
|
|
4aa9feb5be | ||
|
|
16d4b989d8 | ||
|
|
8e5981f640 | ||
|
|
8a52346425 | ||
|
|
21db31e8a0 | ||
|
|
b5d128d6b4 |
@@ -103,6 +103,10 @@ V免签是一款开源免费适用于个人收款使用的收款程序,原理
|
||||
|
||||
# 开源声明
|
||||
|
||||
## 演示站点
|
||||
|
||||
[码支付](http://demo.stspwsc.com/) http://demo.stspwsc.com/
|
||||
|
||||
## 内置插件
|
||||
|
||||
码支付收款管理系统开源免费使用,支付插件有**免费**和**付费**版本,按需使用购买
|
||||
@@ -367,7 +371,6 @@ V免签是一款开源免费适用于个人收款使用的收款程序,原理
|
||||
|
||||
添加应用转发规则,**微信**和**支付宝**需要分别设置
|
||||
|
||||
|
||||

|
||||
|
||||
**具体设置**
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
deny from all
|
||||
@@ -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)
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
@@ -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')];
|
||||
|
||||
@@ -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
2
config/payconfig/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
*
|
||||
!.gitignore
|
||||
1
extend/.gitignore
vendored
Normal file
1
extend/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/payclient
|
||||
@@ -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
2
runtime/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
*
|
||||
!.gitignore
|
||||
@@ -1 +0,0 @@
|
||||
1733190738
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
{"code":0,"msg":"没有新订单"}
|
||||
Reference in New Issue
Block a user