lqmac 1 year ago
parent 6b906b1b1f
commit b605aa3484
  1. 5
      .gitignore
  2. 73
      addons/alisms/config.php
  3. 70
      addons/epay/config.php
  4. 23
      application/api/controller/Common.php
  5. 58
      application/extra/site.php

5
.gitignore vendored

@ -11,4 +11,7 @@
node_modules
.user.ini
sftp-config.json
.DS_Store
.DS_Store
addons/alisms/config.php
addons/epay/config.php
application/extra/site.php

@ -1,73 +0,0 @@
<?php
return [
[
'name' => 'key',
'title' => '应用key',
'type' => 'string',
'content' => [],
'value' => 'LTAI5tPGGohByohCiS3TmHNA',
'rule' => 'required',
'msg' => '',
'tip' => '',
'ok' => '',
'extend' => '',
],
[
'name' => 'secret',
'title' => '密钥secret',
'type' => 'string',
'content' => [],
'value' => 'j4rMmZm8YmfuQbVOIoYXenJMENmebZ',
'rule' => 'required',
'msg' => '',
'tip' => '',
'ok' => '',
'extend' => '',
],
[
'name' => 'sign',
'title' => '签名',
'type' => 'string',
'content' => [],
'value' => '一鸣网络',
'rule' => 'required',
'msg' => '',
'tip' => '',
'ok' => '',
'extend' => '',
],
[
'name' => 'template',
'title' => '短信模板',
'type' => 'array',
'content' => [],
'value' => [
'register' => 'SMS_288490555',
'resetpwd' => 'SMS_288490555',
'changepwd' => 'SMS_288490555',
'changemobile' => 'SMS_288490555',
'profile' => 'SMS_288490555',
'notice' => 'SMS_288490555',
'mobilelogin' => 'SMS_288490555',
'bind' => 'SMS_288490555',
],
'rule' => 'required',
'msg' => '',
'tip' => '',
'ok' => '',
'extend' => '',
],
[
'name' => '__tips__',
'title' => '温馨提示',
'type' => 'string',
'content' => [],
'value' => '应用key和密钥你可以通过 https://ak-console.aliyun.com/?spm=a2c4g.11186623.2.13.fd315777PX3tjy#/accesskey 获取',
'rule' => 'required',
'msg' => '',
'tip' => '',
'ok' => '',
'extend' => '',
],
];

@ -1,70 +0,0 @@
<?php
return [
[
'name' => 'version',
'title' => 'API版本(请勿修改该值)',
'type' => 'radio',
'content' => [],
'value' => 'v2',
'rule' => '',
'msg' => '',
'tip' => 'V2版本只支持微信支付V2密钥,V3版本只支持微信支付V3密钥,请勿修改该值!!!',
'ok' => '',
'extend' => '',
],
[
'name' => 'wechat',
'title' => '微信',
'type' => 'array',
'content' => [],
'value' => [
'appid' => '',
'app_id' => 'wx183e3fbc925f1ba3',
'app_secret' => '',
'miniapp_id' => '',
'mch_id' => '482572',
'key' => 'udiigvdhrhreehhtrtrjjrjrrrrhjheh',
'key_v3' => '',
'mode' => 'normal',
'sub_mch_id' => '',
'sub_appid' => '',
'sub_app_id' => '',
'sub_miniapp_id' => '',
'notify_url' => '',
'cert_client' => '/addons/epay/certs/apiclient_cert.pem',
'cert_key' => '/addons/epay/certs/apiclient_key.pem',
'log' => '1',
],
'rule' => 'required',
'msg' => '',
'tip' => '微信参数配置',
'ok' => '',
'extend' => '',
],
[
'name' => 'alipay',
'title' => '支付宝',
'type' => 'array',
'content' => [],
'value' => [
'mode' => 'normal',
'pid' => '',
'app_id' => '',
'notify_url' => '/addons/epay/api/notifyx/type/alipay',
'return_url' => '/addons/epay/api/returnx/type/alipay',
'private_key' => '',
'signtype' => 'cert',
'ali_public_key' => '',
'app_cert_public_key' => '',
'alipay_root_cert' => '',
'log' => '1',
'scanpay' => '0',
],
'rule' => 'required',
'msg' => '',
'tip' => '支付宝参数配置',
'ok' => '',
'extend' => '',
],
];

@ -17,7 +17,7 @@ use think\Hook;
*/
class Common extends Api
{
protected $noNeedLogin = ['init', 'captcha'];
protected $noNeedLogin = ['init', 'captcha','getAppidByDomain'];
protected $noNeedRight = '*';
public function _initialize()
@ -161,4 +161,25 @@ class Common extends Api
$captcha = new Captcha((array)Config::get('captcha'));
return $captcha->entry($id);
}
public function getAppidByDomain(){
$domain = $this->request->post("domain");
$wx_appid = Config::get("site.wx_appid");
if (!$wx_appid) {
$this->error("appid没有配置");
}
$this->success('ok', ['wx_appid' => $wx_appid]);
}
}

@ -1,58 +0,0 @@
<?php
return array (
'name' => '我的网站',
'beian' => '',
'cdnurl' => '',
'version' => '1.0.1',
'timezone' => 'Asia/Shanghai',
'forbiddenip' => '',
'languages' =>
array (
'backend' => 'zh-cn',
'frontend' => 'zh-cn',
),
'fixedpage' => 'dashboard',
'categorytype' =>
array (
'default' => '默认',
'page' => '单页',
'article' => '文章',
'test' => 'Test',
),
'configgroup' =>
array (
'basic' => '基础配置',
'email' => '邮件配置',
'dictionary' => '字典配置',
'user' => '会员配置',
'distribution' => '分销设置',
),
'mail_type' => '1',
'mail_smtp_host' => 'smtp.qq.com',
'mail_smtp_port' => '465',
'mail_smtp_user' => '10000',
'mail_smtp_pass' => 'password',
'mail_verify_type' => '2',
'mail_from' => '10000@qq.com',
'attachmentcategory' =>
array (
'category1' => '分类一',
'category2' => '分类二',
'custom' => '自定义',
),
'banner' =>
array (
0 => '/uploads/20231010/fc7f6f9b2bc96f98740942321433160f.jpeg',
1 => '/uploads/20231010/fc7f6f9b2bc96f98740942321433160f.jpeg',
),
'user_buy_limit_per_day' => '5',
'advance_user_buy_limit_per_day' => '1',
'goods_buy_limit' => '50.01',
'order_cancel_time' => '1200',
'auto_shoukuan_time' => '0',
'order_succ_image' => '/uploads/20231010/f7005536fecc1e70488e3d6c225bca1c.png',
'entrusted_ratio' => '5.00',
'primary_distribution' => '0.4',
'entrustment_ratio' => '3.5',
);
Loading…
Cancel
Save