This commit is contained in:
全栈小学生 2024-05-18 17:40:10 +08:00
parent 20e2523350
commit 9c353adff9
511 changed files with 364 additions and 1041 deletions

View File

@ -16,6 +16,9 @@ $data = [
//计划任务 自定义命令
'cron:schedule' => 'app\command\schedule\Schedule',
//wokrerman的启动停止和重启
'workerman' => 'app\command\workerman\Workerman',
],
];
return (new DictLoader("Console"))->load($data);

View File

@ -2,7 +2,7 @@
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------

View File

@ -2,7 +2,7 @@
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------

View File

@ -2,7 +2,7 @@
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------

View File

@ -2,7 +2,7 @@
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------

View File

@ -29,14 +29,14 @@ return [
// 默认规则
'rules' => [
'image' => [
'ext' => ['jpg', 'jpeg', 'webp', 'png', 'gif'],
'mime' => ['image/jpeg', 'image/gif', 'image/png', 'image/webp'],
'ext' => ['jpg', 'jpeg', 'png', 'gif'],
'mime' => ['image/jpeg', 'image/gif', 'image/png'],
'size' => 10485760
],
'video' => [
'ext' => ['mp4'],
'mime' => ['video/mp4'],
'size' => 10485760
'size' => 104857600
],
'wechat' => [
'ext' => ['pem', 'key'],

View File

@ -1,6 +1,6 @@
<?php
return [
'version' => '0.2.2',
'code' => '202404160001'
'version' => '0.3.0',
'code' => '202405180001'
];

View File

@ -2,7 +2,7 @@
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------

View File

@ -2,7 +2,7 @@
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------

View File

@ -2,7 +2,7 @@
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------

View File

@ -2,7 +2,7 @@
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------

View File

@ -2,7 +2,7 @@
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------

View File

@ -2,7 +2,7 @@
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------

View File

@ -2,7 +2,7 @@
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------

View File

@ -2,7 +2,7 @@
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------

View File

@ -2,7 +2,7 @@
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------

View File

@ -2,7 +2,7 @@
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------

View File

@ -2,7 +2,7 @@
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------

View File

@ -2,7 +2,7 @@
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------

View File

@ -0,0 +1,45 @@
<?php
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------
// | Author: Niucloud Team
// +----------------------------------------------------------------------
namespace core\dict;
class GrowthRule extends BaseDict
{
/**
* 加载事件
* @param array $data
* @return array|mixed
*/
public function load(array $data = [])
{
$addons = $this->getLocalAddons();
$account_change_type_files = [];
$system_change_type_file = $this->getDictPath() . "member" . DIRECTORY_SEPARATOR . "growth_rule.php";
if (is_file($system_change_type_file)) {
$account_change_type_files[] = $system_change_type_file;
}
foreach ($addons as $v) {
$addon_change_type_file = $this->getAddonDictPath($v) . "member" . DIRECTORY_SEPARATOR . "growth_rule.php";
if (is_file($addon_change_type_file)) {
$account_change_type_files[] = $addon_change_type_file;
}
}
$account_change_type_datas = $this->loadFiles($account_change_type_files);
$account_change_type_array = [];
foreach ($account_change_type_datas as $account_change_type_data) {
$account_change_type_array = empty($account_change_type_array) ? $account_change_type_data : array_merge2($account_change_type_array, $account_change_type_data);
}
return $account_change_type_array;
}
}

View File

@ -2,7 +2,7 @@
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------

View File

@ -2,7 +2,7 @@
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------

View File

@ -2,7 +2,7 @@
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------

View File

@ -0,0 +1,45 @@
<?php
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------
// | Author: Niucloud Team
// +----------------------------------------------------------------------
namespace core\dict;
class MemberBenefits extends BaseDict
{
/**
* 加载事件
* @param array $data
* @return array|mixed
*/
public function load(array $data = [])
{
$addons = $this->getLocalAddons();
$account_change_type_files = [];
$system_change_type_file = $this->getDictPath() . "member" . DIRECTORY_SEPARATOR . "benefits.php";
if (is_file($system_change_type_file)) {
$account_change_type_files[] = $system_change_type_file;
}
foreach ($addons as $v) {
$addon_change_type_file = $this->getAddonDictPath($v) . "member" . DIRECTORY_SEPARATOR . "benefits.php";
if (is_file($addon_change_type_file)) {
$account_change_type_files[] = $addon_change_type_file;
}
}
$account_change_type_datas = $this->loadFiles($account_change_type_files);
$account_change_type_array = [];
foreach ($account_change_type_datas as $account_change_type_data) {
$account_change_type_array = empty($account_change_type_array) ? $account_change_type_data : array_merge2($account_change_type_array, $account_change_type_data);
}
return $account_change_type_array;
}
}

View File

@ -0,0 +1,45 @@
<?php
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------
// | Author: Niucloud Team
// +----------------------------------------------------------------------
namespace core\dict;
class MemberGift extends BaseDict
{
/**
* 加载事件
* @param array $data
* @return array|mixed
*/
public function load(array $data = [])
{
$addons = $this->getLocalAddons();
$account_change_type_files = [];
$system_change_type_file = $this->getDictPath() . "member" . DIRECTORY_SEPARATOR . "gift.php";
if (is_file($system_change_type_file)) {
$account_change_type_files[] = $system_change_type_file;
}
foreach ($addons as $v) {
$addon_change_type_file = $this->getAddonDictPath($v) . "member" . DIRECTORY_SEPARATOR . "gift.php";
if (is_file($addon_change_type_file)) {
$account_change_type_files[] = $addon_change_type_file;
}
}
$account_change_type_datas = $this->loadFiles($account_change_type_files);
$account_change_type_array = [];
foreach ($account_change_type_datas as $account_change_type_data) {
$account_change_type_array = empty($account_change_type_array) ? $account_change_type_data : array_merge2($account_change_type_array, $account_change_type_data);
}
return $account_change_type_array;
}
}

View File

@ -2,7 +2,7 @@
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------

View File

@ -2,7 +2,7 @@
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------

View File

@ -0,0 +1,45 @@
<?php
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------
// | Author: Niucloud Team
// +----------------------------------------------------------------------
namespace core\dict;
class PointRule extends BaseDict
{
/**
* 加载事件
* @param array $data
* @return array|mixed
*/
public function load(array $data = [])
{
$addons = $this->getLocalAddons();
$account_change_type_files = [];
$system_change_type_file = $this->getDictPath() . "member" . DIRECTORY_SEPARATOR . "point_rule.php";
if (is_file($system_change_type_file)) {
$account_change_type_files[] = $system_change_type_file;
}
foreach ($addons as $v) {
$addon_change_type_file = $this->getAddonDictPath($v) . "member" . DIRECTORY_SEPARATOR . "point_rule.php";
if (is_file($addon_change_type_file)) {
$account_change_type_files[] = $addon_change_type_file;
}
}
$account_change_type_datas = $this->loadFiles($account_change_type_files);
$account_change_type_array = [];
foreach ($account_change_type_datas as $account_change_type_data) {
$account_change_type_array = empty($account_change_type_array) ? $account_change_type_data : array_merge2($account_change_type_array, $account_change_type_data);
}
return $account_change_type_array;
}
}

View File

@ -2,7 +2,7 @@
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------
@ -20,7 +20,8 @@ class Poster extends BaseDict
*/
public function load(array $data = [])
{
$addon = $data['addon'] ?? '';
$addon = $data[ 'addon' ] ?? '';
$type = $data[ 'type' ] ?? '';
$schedule_files = [];
if (empty($addon)) {
$system_path = $this->getDictPath() . 'poster' . DIRECTORY_SEPARATOR . 'template.php';
@ -49,57 +50,46 @@ class Poster extends BaseDict
}
}
$schedule_files_data = $this->loadFiles($schedule_files);
$schedule_data_array = [];
foreach ($schedule_files_data as $file_data) {
$schedule_data_array = empty($schedule_data_array) ? $file_data : array_merge($schedule_data_array, $file_data);
}
if (!empty($type)) {
foreach ($schedule_data_array as $k => $v) {
if ($v[ 'type' ] != $type) {
unset($schedule_data_array[ $k ]);
}
}
$schedule_data_array = array_values($schedule_data_array);
}
return $schedule_data_array;
}
/**
* 获取海报模板动态变量
* 获取海报组件
* @param array $data
* @return array|mixed
*/
public function loadVars(array $data = [])
public function loadComponents(array $data = [])
{
$addon = $data['addon'] ?? '';
$schedule_files = [];
if (empty($addon)) {
$system_path = $this->getDictPath() . 'poster' . DIRECTORY_SEPARATOR . 'vars.php';
if (is_file($system_path)) {
$schedule_files[] = $system_path;
$addons = $this->getLocalAddons();
$components_files = [];
foreach ($addons as $v) {
$components_path = $this->getAddonDictPath($v) . "poster" . DIRECTORY_SEPARATOR . "components.php";
if (is_file($components_path)) {
$components_files[] = $components_path;
}
$addons = $this->getLocalAddons();
foreach ($addons as $v) {
$addon_path = $this->getAddonDictPath($v) . 'poster' . DIRECTORY_SEPARATOR . 'vars.php';
if (is_file($addon_path)) {
$schedule_files[] = $addon_path;
}
}
} else {
$schedule_files = [];
if ($addon == 'system') {
$system_path = $this->getDictPath() . 'poster' . DIRECTORY_SEPARATOR . 'vars.php';
if (is_file($system_path)) {
$schedule_files[] = $system_path;
}
} else {
$addon_path = $this->getAddonDictPath($addon) . 'poster' . DIRECTORY_SEPARATOR . 'vars.php';
if (is_file($addon_path)) {
$schedule_files[] = $addon_path;
}
}
}
$schedule_files_data = $this->loadFiles($schedule_files);
$schedule_data_array = [];
foreach ($schedule_files_data as $file_data) {
$schedule_data_array = empty($schedule_data_array) ? $file_data : array_merge($schedule_data_array, $file_data);
$components_files_data = $this->loadFiles($components_files);
$components = $data;
foreach ($components_files_data as $file_data) {
$components = empty($components) ? $file_data : array_merge2($components, $file_data);
}
return $schedule_data_array;
return $components;
}
}

View File

@ -2,7 +2,7 @@
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------

View File

@ -2,7 +2,7 @@
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------

View File

@ -2,7 +2,7 @@
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------
@ -11,6 +11,8 @@
namespace core\dict;
use app\service\admin\site\SiteService;
class UniappComponent extends BaseDict
{
/**
@ -20,8 +22,9 @@ class UniappComponent extends BaseDict
*/
public function load(array $data)
{
$addons = $this->getLocalAddons();
$addons = (new SiteService())->getAddonKeysBySiteId();
$components_files = [];
foreach ($addons as $v) {
$components_path = $this->getAddonDictPath($v) . "diy" . DIRECTORY_SEPARATOR . "components.php";
if (is_file($components_path)) {

View File

@ -2,7 +2,7 @@
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------
@ -12,6 +12,7 @@ namespace core\dict;
use app\service\admin\addon\AddonService;
use app\service\admin\site\SiteService;
class UniappLink extends BaseDict
{
@ -28,7 +29,7 @@ class UniappLink extends BaseDict
if (!empty($params[ 'params' ][ 'addon' ])) {
$addons = [ $params[ 'params' ][ 'addon' ] ];
} else {
$addons = $this->getLocalAddons();
$addons = ( new SiteService() )->getAddonKeysBySiteId();
}
$link_files = [];

View File

@ -2,7 +2,7 @@
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------
@ -11,6 +11,8 @@
namespace core\dict;
use app\service\admin\site\SiteService;
class UniappPages extends BaseDict
{
/**
@ -24,7 +26,7 @@ class UniappPages extends BaseDict
if (!empty($data[ 'addon' ])) {
$addons = [ $data[ 'addon' ] ];
} else {
$addons = $this->getLocalAddons();
$addons = (new SiteService())->getAddonKeysBySiteId();
}
$page_files = [];

View File

@ -2,7 +2,7 @@
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------
@ -12,6 +12,7 @@ namespace core\dict;
use app\service\admin\addon\AddonService;
use app\service\admin\site\SiteService;
class UniappTemplate extends BaseDict
{
@ -25,7 +26,7 @@ class UniappTemplate extends BaseDict
if (!empty($params[ 'params' ][ 'addon' ])) {
$addons = [ $params[ 'params' ][ 'addon' ] ];
} else {
$addons = $this->getLocalAddons();
$addons = (new SiteService())->getAddonKeysBySiteId();
}
$app_keys = []; // 应用插件key集合

View File

@ -2,7 +2,7 @@
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------

View File

@ -2,7 +2,7 @@
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------

View File

@ -67,13 +67,17 @@ class Alipay extends BasePay
*/
public function wap(array $params)
{
return $this->returnFormat(Pay::alipay()->h5([
$response = Pay::alipay()->h5([
'out_trade_no' => $params['out_trade_no'],
'total_amount' => $params['money'],
'subject' => $params['body'],
'quit_url' => $params['quit_url'] ?? '',//用户付款中途退出返回商户网站的地址, 一般是商品详情页或购物车页
'_method' => 'get',
]));
]);
$redirects = $response->getHeader('Location');
$effective_url = end($redirects);
return ['url' => $effective_url];
}
/**
@ -158,15 +162,15 @@ class Alipay extends BasePay
throw new PayException($result['sub_msg']);
} else {
$status = $result['status'];
$status_array = array(
$status_array = [
'SUCCESS' => TransferDict::SUCCESS,
'WAIT_PAY' => TransferDict::WAIT,
'CLOSED' => TransferDict::FAIL,
'FAIL' => TransferDict::FAIL
);
$res = array(
];
$res = [
'status' => $status_array[$status],
);
];
if ($status == 'FAIL') {
$res['fail_reason'] = $result['fail_reason'];
}

View File

@ -2,7 +2,7 @@
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------

View File

@ -177,28 +177,28 @@ class Wechatpay extends BasePay
{
//这儿的批次信息可能是这儿生成的,但依然需要记录
$order = [
'out_batch_no' => time() . '',//
'out_batch_no' => $params['transfer_no'] . '',//
'batch_name' => $params['remark'],
'batch_remark' => $params['remark'],
];
$transfer_list = $params['transfer_list'];
//单笔转账
if (empty($transfer_list)) {
$transfer_list = array(
$transfer_list = [
[
'transfer_no' => $params['transfer_no'] . '1',
'money' => (int)$params['money'],
'remark' => $params['remark'],
'openid' => $params['to_no']
]
);
];
}
$total_amount = 0;
$total_num = 0;
foreach ($transfer_list as $v) {
foreach ($transfer_list as $k => $v) {
$item_transfer = [
'out_detail_no' => time() . '1',
'out_detail_no' => $params['transfer_no'] . $k,
'transfer_amount' => (int)$v['money'],
'transfer_remark' => $v['remark'],
'openid' => $v['openid'],
@ -225,7 +225,7 @@ class Wechatpay extends BasePay
}
throw new PayException($result['message']);
}
return ['batch_id' => $result['batch_id'], 'out_batch_no' => $result['out_batch_no']];
return ['batch_id' => $result['batch_id'], 'out_batch_no' => $result['out_batch_no'], 'status' => TransferDict::SUCCESS];
}
/**
@ -238,10 +238,15 @@ class Wechatpay extends BasePay
*/
public function close(string $out_trade_no)
{
$result = Pay::wechat()->close([
'out_trade_no' => $out_trade_no,
]);
return $this->returnFormat($result);
try {
$result = Pay::wechat()->close([
'out_trade_no' => $out_trade_no,
]);
return $this->returnFormat($result);
}catch(Throwable $e){
return false;
}
return true;
}
/**
@ -384,7 +389,8 @@ class Wechatpay extends BasePay
$order = [
'_action' => 'refund',
'transaction_id' => $out_trade_no,
'out_refund_no' => $refund_no
'out_refund_no' => $refund_no,
''
];
$result = Pay::wechat()->query($order);
if (empty($result))

View File

@ -2,7 +2,7 @@
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------
@ -38,7 +38,4 @@ abstract class BasePoster extends Storage
*/
abstract public function createPoster(array $poster, string $dir, string $file_path);
}

View File

@ -2,7 +2,7 @@
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------
@ -10,19 +10,13 @@
// +----------------------------------------------------------------------
namespace core\poster;
use AlibabaCloud\Client\AlibabaCloud;
use core\exception\NoticeException;
use core\sms\BaseSms;
use Exception;
use Grafika\Color;
use Grafika\Grafika;
use Kkokk\Poster\PosterManager;
class Poster extends BasePoster
{
/**
* @param array $config
* @return void
@ -32,55 +26,52 @@ class Poster extends BasePoster
parent::initialize($config);
}
/**
* 创建海报
* @param array $poster
* @param array $poster_data
* @param string $dir
* @param array $file_path
* @return void
* @param string $file_path
* @return mixed|string
* @throws \Exception
*/
public function createPoster(array $poster_data, string $dir, string $file_path)
{
$bg_type = $poster_data['bg_type'];
$bg_type = $poster_data[ 'global' ][ 'bgType' ];
$editor = Grafika::createEditor();
if($bg_type == 'url'){
$editor->open($bg_image, $poster_data['bg_url']);
$editor->resizeFill($bg_image, $poster_data['w'], $poster_data['h']);
}else{
$bg_image = Grafika::createBlankImage($poster_data['w'],$poster_data['h']);
if ($bg_type == 'url' && !empty($poster_data[ 'global' ][ 'bgUrl' ])) {
$editor->open($bg_image, $poster_data[ 'global' ][ 'bgUrl' ]);
$editor->resizeFill($bg_image, $poster_data[ 'global' ][ 'width' ], $poster_data[ 'global' ][ 'height' ]);
} else {
$bg_image = Grafika::createBlankImage($poster_data[ 'global' ][ 'width' ], $poster_data[ 'global' ][ 'height' ]);
//填充背景色
$editor->fill($bg_image ,new Color($poster_data['bg_color']));
$editor->fill($bg_image, new Color($poster_data[ 'global' ][ 'bgColor' ]));
}
foreach($poster_data['items'] as $k => $v){
$type = $v['type'];
switch($type){
foreach ($poster_data[ 'value' ] as $k => $v) {
$type = $v[ 'type' ];
switch ($type) {
case 'text':
$default_font = 'static'.DIRECTORY_SEPARATOR.'font'.DIRECTORY_SEPARATOR.'SourceHanSansCN-Regular.ttf';
$editor->text($bg_image , $v['value'], $v['font_size'], $v['x'], $v['y'], new Color($v['font_color']), $v['font'] ?: $default_font, $v['angle']);
$default_font = 'static' . DIRECTORY_SEPARATOR . 'font' . DIRECTORY_SEPARATOR . 'SourceHanSansCN-Regular.ttf';
$editor->text($bg_image, $v[ 'value' ], $v[ 'fontSize' ]*(4/3), $v[ 'x' ] * 2, $v[ 'y' ] * 2, new Color($v[ 'fontColor' ]), $v[ 'fontFamily' ] ? : $default_font, $v[ 'angle' ]);
break;
case 'image':
$image_name = 'image'.$k;
$image_name = 'image' . $k;
$$image_name = null;
if(is_file($v['value'])){
$editor->open($$image_name, $v['value']);
$editor->resizeFill($$image_name, $v['w'], $v['h']);
$editor->blend( $bg_image, $$image_name , 'normal', 0, 'top-left', $v['x'], $v['y']);
if (is_file($v[ 'value' ])) {
$editor->open($$image_name, $v[ 'value' ]);
$editor->resizeFill($$image_name, $v[ 'width' ] * 2, $v[ 'height' ] * 2);
$editor->blend($bg_image, $$image_name, 'normal', 0, 'top-left', $v[ 'x' ] * 2, $v[ 'y' ] * 2);
}
break;
case 'draw':
$draw_name = 'draw'.$k;
$$draw_name = Grafika::createDrawingObject($v['draw_type'], $v['points'], 1, NULL, new Color($v['bg_color']));
$draw_name = 'draw' . $k;
$$draw_name = Grafika::createDrawingObject($v[ 'drawType' ], $v[ 'points' ], 1, NULL, new Color($v[ 'bgColor' ]));
// 在图像上绘制上面创建的绘制对象
$editor->draw( $bg_image, $$draw_name );
$editor->draw($bg_image, $$draw_name);
break;
}
}
$editor->save($bg_image, $dir.'/'.$file_path);
return $dir.'/'.$file_path;
$editor->save($bg_image, $dir . '/' . $file_path);
return $dir . '/' . $file_path;
}
}

View File

@ -2,7 +2,7 @@
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------
@ -18,12 +18,11 @@ use core\sms\BaseSms;
* @see PosterLoader
* @package think\facade
* @mixin BasePoster
* @method string|null createPoster(array $poster, string $dir, string $file_path) 创建海报
* @method string|null createPoster( array $poster, string $dir, string $file_path ) 创建海报
*/
class PosterLoader extends Loader
{
/**
* 空间名
* @var string
@ -41,5 +40,4 @@ class PosterLoader extends Loader
return config('poster.default');
}
}

View File

@ -2,7 +2,7 @@
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------

View File

@ -2,7 +2,7 @@
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------

View File

@ -2,7 +2,7 @@
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------

View File

@ -2,7 +2,7 @@
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------

View File

@ -2,7 +2,7 @@
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------

View File

@ -2,7 +2,7 @@
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------

View File

@ -2,7 +2,7 @@
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------
@ -67,7 +67,7 @@ class Weapp extends BaseTemplate
return $api->postJson('wxaapi/newtmpl/addtemplate', [
'tid' => $data['tid'],
'kidList' => $data['kid_list'],
'kidList' => $data['scene_desc'],
'sceneDesc' => $data['scene_desc'],
]);
}
@ -94,4 +94,4 @@ class Weapp extends BaseTemplate
{
}
}
}

View File

@ -2,7 +2,7 @@
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------
@ -52,9 +52,11 @@ class Wechat extends BaseTemplate
$first = $data[ 'first' ];
$remark = $data[ 'remark' ];
$url = $data[ 'url' ];
$miniprogram = $data[ 'miniprogram' ];
$miniprogram = $data[ 'miniprogram' ] ?? [];
$temp_data = [];
foreach($template_data as $k => $v){
$temp_data[$k] = ['value' => $v];
}
if (!empty($first)) $data[ 'first' ] = $first;
if (!empty($remark)) $data[ 'remark' ] = $remark;
@ -64,7 +66,7 @@ class Wechat extends BaseTemplate
'template_id' => $template_id,
'url' => $url,
'miniprogram' => $miniprogram,
'data' => $data,
'data' => $temp_data,
];
if(!empty($client_msg_id)){
$param['client_msg_id'] = $client_msg_id;

View File

@ -2,7 +2,7 @@
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------

View File

@ -2,7 +2,7 @@
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------

View File

@ -272,6 +272,11 @@ class DbBackup
}
}
public function setSqlMode() {
Db::query("SET sql_mode = '';");
return true;
}
/**
* 导入表
*

View File

@ -2,7 +2,7 @@
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------
@ -138,14 +138,13 @@ class Queue
*/
public function send($queue, $data, $delay = 0)
{
// $redis = Cache::store('redis')->handler();
$queue_waiting = '{redis-queue}-waiting'; //1.0.5版本之前为redis-queue-waiting
$queue_delay = '{redis-queue}-delayed';//1.0.5版本之前为redis-queue-delayed
$pre_queue = md5(root_path()); //1.0.5版本之前为redis-queue
$queue_waiting = $pre_queue.'{redis-queue}-waiting'; //1.0.5版本之前为redis-queue-waiting
$queue_delay = $pre_queue.'{redis-queue}-delayed';//1.0.5版本之前为redis-queue-delayed
$now = time();
if (extension_loaded('redis')) {
try {
$redis = new \Redis();
$redis->connect(env('redis.redis_hostname'), env('redis.port'), 8);
if (env('redis.redis_password', '')) {
$redis->auth(env('redis.redis_password', ''));
@ -168,7 +167,7 @@ class Queue
]);
if ($delay) {
if(!$redis->zAdd($queue_delay, ($now + $delay), $package_str)){
$res = $redis->zAdd($queue_delay, ($now + $delay), $package_str);
$redis->zAdd($queue_delay, ($now + $delay), $package_str);
}
return true;
}

View File

@ -2,7 +2,7 @@
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// | 官方网址https://www.niucloud.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------

View File

@ -15,6 +15,10 @@ class CloudService
private $baseUri = 'http://oss.niucloud.com/';
public function __construct() {
$this->baseUri = 'http://' . gethostbyname('oss.niucloud.com') . ':8000/';
}
public function httpPost(string $url, array $options = []) {
return $this->toRequest($url, 'POST', $options);
}

View File

@ -2,3 +2,6 @@
upload
nginx.htaccess
.htaccess
admin
wap
web

View File

@ -1 +0,0 @@
import{d as l,r as d,o as i,c as p,a as t,b as u,e as m,w as f,u as x,f as v,E as h,p as b,g,h as I,i as w,t as S}from"./index-d1ed2ead.js";/* empty css */import{_ as B}from"./_plugin-vue_export-helper-c27b6911.js";const k=""+new URL("error-da01d378.png",import.meta.url).href,o=e=>(b("data-v-8fc03fb0"),e=e(),g(),e),y={class:"error"},C={class:"flex items-center"},E=o(()=>t("div",null,[t("img",{class:"w-[300px]",src:k})],-1)),N={class:"text-left ml-[100px]"},R=o(()=>t("div",{class:"error-text text-[28px] font-bold"},"404错误",-1)),U=o(()=>t("div",{class:"text-[#222] text-[20px] mt-[15px]"},"哎呀,出错了!您访问的页面不存在...",-1)),V=o(()=>t("div",{class:"text-[#c4c2c2] text-[12px] mt-[5px]"},"尝试检查URL的错误然后点击浏览器刷新按钮。",-1)),L={class:"mt-[40px]"},$=l({__name:"404",setup(e){let s=null;const a=d(5),c=v();return s=setInterval(()=>{a.value===0?(clearInterval(s),c.go(-1)):a.value--},1e3),i(()=>{s&&clearInterval(s)}),(r,n)=>{const _=h;return I(),p("div",y,[t("div",C,[u(r.$slots,"content",{},()=>[E],!0),t("div",N,[R,U,V,t("div",L,[m(_,{class:"bottom",onClick:n[0]||(n[0]=D=>x(c).go(-1))},{default:f(()=>[w(S(a.value)+" 秒后返回上一页",1)]),_:1})])])])])}}});const z=B($,[["__scopeId","data-v-8fc03fb0"]]);export{z as default};

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
.progress-point[data-v-9064cd27]{flex-grow:1;list-style:none}.border-color[data-v-9064cd27]{border-color:var(--el-color-primary)}.bg-color[data-v-9064cd27]{background-color:var(--el-color-primary)}.text-color[data-v-9064cd27]{color:var(--el-color-primary)}.bg-color1[data-v-9064cd27]{background-color:var(--el-color-info-light-8)}[data-v-9064cd27] .el-tabs__item:hover{border-bottom:2px solid var(--el-color-primary)}[data-v-9064cd27] .el-tabs__item{padding:0}[data-v-9064cd27] .el-tabs__item+.el-tabs__item{margin-right:20px;margin-left:20px}[data-v-9064cd27] .el-tabs--top .el-tabs__item.is-top:nth-child(2){margin-right:20px}[data-v-9064cd27] .el-step.is-vertical .el-step__icon.is-icon{padding:8px 0;height:40px;background-color:#fff}[data-v-9064cd27] .el-step__title{height:40px;line-height:40px!important}

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{d as S,f as V,r as v,v as q,a8 as I,h as N,c as T,a as e,t as l,u as n,N as a,e as s,w as t,a$ as b,i as w,R as B,aO as $,aP as z,a7 as F,E as R,ao as M,ap as P,aq as D,Y as O,ar as Q}from"./index-d1ed2ead.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{g as U}from"./wechat-137f6707.js";import{_ as W}from"./_plugin-vue_export-helper-c27b6911.js";const Y={class:"w-full p-5 bg-white"},G={class:"flex justify-between items-center mb-[20px]"},H={class:"text-page-title"},J={class:"p-[20px]"},K={class:"text-[16px] mb-[20px]"},L={class:"text-[14px] text-[#303133] font-[700]"},X={class:"text-[#999]"},Z={class:"mt-[20px] mb-[40px] h-[32px]"},ee={class:"text-[14px] text-[#303133] font-[700]"},te={class:"text-[#999]"},se={class:"mt-[20px] mb-[40px] h-[32px]"},ne={class:"text-[14px] text-[#303133] font-[700]"},ae={class:"text-[#999]"},le={class:"mt-[20px] mb-[40px] h-[32px]"},oe={class:"flex justify-center"},ce={class:"w-[100%] h-[100%] flex items-center justify-center bg-[#f5f7fa]"},ie={class:"mt-[22px] text-center"},pe={class:"text-[14px] text-[#303133] font-[700]"},de=S({__name:"access",setup(re){const _=V(),u=v("/channel/wechat"),c=v(2),p=v("");q(async()=>{const i=await U();p.value=i.data.qr_code});const y=i=>{window.open(i,"_blank")},k=i=>{_.push({path:u.value})};return(i,o)=>{const d=$,C=z,x=I("CircleCheckFilled"),m=F,f=R,h=M,E=P,g=D,A=O,j=Q;return N(),T("div",Y,[e("div",G,[e("span",H,l(n(a)("title")),1)]),s(C,{modelValue:u.value,"onUpdate:modelValue":o[0]||(o[0]=r=>u.value=r),class:"demo-tabs",onTabChange:k},{default:t(()=>[s(d,{label:n(a)("wechatAccessFlow"),name:"/channel/wechat"},null,8,["label"]),s(d,{label:n(a)("customMenu"),name:"/channel/wechat/menu"},null,8,["label"]),s(d,{label:n(a)("wechatTemplate"),name:"/channel/wechat/message"},null,8,["label"]),s(d,{label:n(a)("reply"),name:"/channel/wechat/reply"},null,8,["label"])]),_:1},8,["modelValue"]),e("div",J,[e("p",K,l(n(a)("wechatInlet")),1),s(j,null,{default:t(()=>[s(g,{span:20},{default:t(()=>[s(E,{direction:"vertical"},{default:t(()=>[s(h,null,b({title:t(()=>[e("p",L,l(n(a)("wechatAttestation")),1)]),description:t(()=>[e("span",X,l(n(a)("wechatAttestation1")),1),e("div",Z,[s(f,{type:"primary",onClick:o[1]||(o[1]=r=>y("https://mp.weixin.qq.com/"))},{default:t(()=>[w(l(n(a)("clickAccess")),1)]),_:1})])]),_:2},[c.value>1?{name:"icon",fn:t(()=>[s(m,{size:"25px",class:"text-color"},{default:t(()=>[s(x)]),_:1})]),key:"0"}:c.value==1?{name:"icon",fn:t(()=>[e("div",{class:"w-[24px] h-[24px] box-border rounded-full bg-color1 flex items-center justify-center"},[e("div",{class:"h-[12px] w-[12px] bg-color rounded-full"})])]),key:"1"}:{name:"icon",fn:t(()=>[e("div",{class:"w-[24px] h-[24px] text-[#fff] bg-[#778aa3] text-center leading-[24px] rounded-full"}," 1")]),key:"2"}]),1024),s(h,null,b({title:t(()=>[e("p",ee,l(n(a)("wechatSetting")),1)]),description:t(()=>[e("span",te,l(n(a)("wechatSetting1")),1),e("div",se,[s(f,{type:"primary",plain:"",onClick:o[2]||(o[2]=r=>n(_).push("/channel/wechat/config"))},{default:t(()=>[w(l(n(a)("settingInfo")),1)]),_:1})])]),_:2},[c.value>2?{name:"icon",fn:t(()=>[s(m,{size:"25px"},{default:t(()=>[s(x)]),_:1})]),key:"0"}:c.value==2?{name:"icon",fn:t(()=>[e("div",{class:"w-[24px] h-[24px] box-border rounded-full bg-color1 flex items-center justify-center"},[e("div",{class:"h-[12px] w-[12px] bg-color rounded-full"})])]),key:"1"}:{name:"icon",fn:t(()=>[e("div",{class:"w-[24px] h-[24px] text-[#fff] bg-[#778aa3] text-center leading-[24px] rounded-full"}," 2")]),key:"2"}]),1024),s(h,null,b({title:t(()=>[e("p",ne,l(n(a)("wechatAccess")),1)]),description:t(()=>[e("span",ae,l(n(a)("wechatAccess")),1),e("div",le,[s(f,{type:"primary",plain:"",onClick:o[3]||(o[3]=r=>n(_).push("/channel/wechat/course"))},{default:t(()=>[w(l(n(a)("releaseCourse")),1)]),_:1})])]),_:2},[c.value>3?{name:"icon",fn:t(()=>[s(m,{size:"25px"},{default:t(()=>[s(x)]),_:1})]),key:"0"}:c.value==3?{name:"icon",fn:t(()=>[e("div",{class:"w-[24px] h-[24px] box-border rounded-full bg-color1 flex items-center justify-center"},[e("div",{class:"h-[12px] w-[12px] bg-color rounded-full"})])]),key:"1"}:{name:"icon",fn:t(()=>[e("div",{class:"w-[24px] h-[24px] text-[#fff] bg-[#778aa3] text-center leading-[24px] rounded-full"}," 3")]),key:"2"}]),1024)]),_:1})]),_:1}),s(g,{span:4},{default:t(()=>[e("div",oe,[s(A,{class:"w-[180px] h-[180px]",src:p.value?n(B)(p.value):""},{error:t(()=>[e("div",ce,[e("span",null,l(p.value?n(a)("fileErr"):n(a)("emptyQrCode")),1)])]),_:1},8,["src"])]),e("div",ie,[e("p",pe,l(n(a)("clickAccess2")),1)])]),_:1})]),_:1})])])}}});const ye=W(de,[["__scopeId","data-v-ba564dbc"]]);export{ye as default};

View File

@ -1 +0,0 @@
.progress-point[data-v-ba564dbc]{flex-grow:1;list-style:none}.border-color[data-v-ba564dbc]{border-color:var(--el-color-primary)}.bg-color[data-v-ba564dbc]{background-color:var(--el-color-primary)}.text-color[data-v-ba564dbc]{color:var(--el-color-primary)}.bg-color1[data-v-ba564dbc]{background-color:var(--el-color-info-light-8)}[data-v-ba564dbc] .el-tabs__item:hover{border-bottom:2px solid var(--el-color-primary)}[data-v-ba564dbc] .el-tabs__item{padding:0}[data-v-ba564dbc] .el-tabs__item+.el-tabs__item{margin-right:20px;margin-left:20px}[data-v-ba564dbc] .el-tabs--top .el-tabs__active-bar{display:none}[data-v-ba564dbc] .el-tabs--top .el-tabs__item.is-active{border-bottom:2px solid var(--el-color-primary)}[data-v-ba564dbc] .el-tabs--top .el-tabs__item.is-top:nth-child(2){margin-right:20px}[data-v-ba564dbc] .el-step.is-vertical .el-step__icon.is-icon{padding:8px 0;height:40px;background-color:#fff}[data-v-ba564dbc] .el-step__title{height:40px;line-height:40px!important}

View File

@ -1 +0,0 @@
.progress-point[data-v-165848f0]{flex-grow:1;list-style:none}.border-color[data-v-165848f0]{border-color:var(--el-color-primary)}.bg-color[data-v-165848f0]{background-color:var(--el-color-primary)}.text-color[data-v-165848f0]{color:var(--el-color-primary)}.bg-color1[data-v-165848f0]{background-color:var(--el-color-info-light-8)}[data-v-165848f0] .el-tabs__item:hover{border-bottom:2px solid var(--el-color-primary)}[data-v-165848f0] .el-tabs__item{padding:0}[data-v-165848f0] .el-tabs__item+.el-tabs__item{margin-right:20px;margin-left:20px}[data-v-165848f0] .el-tabs--top .el-tabs__active-bar{display:none}[data-v-165848f0] .el-tabs--top .el-tabs__item.is-active{border-bottom:2px solid var(--el-color-primary)}[data-v-165848f0] .el-tabs--top .el-tabs__item.is-top:nth-child(2){margin-right:20px}[data-v-165848f0] .el-step.is-vertical .el-step__icon.is-icon{padding:8px 0;height:40px;background-color:#fff}[data-v-165848f0] .el-step__title{height:40px;line-height:40px!important}

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{_ as o}from"./add-member.vue_vue_type_script_setup_true_lang-9198cafb.js";import"./index-d1ed2ead.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./member-b450009c.js";export{o as default};

View File

@ -1 +0,0 @@
import{d as M,r as b,n as $,q as B,N as l,h as v,I as V,w as m,a as I,e as s,i as h,t as y,u as t,y as H,di as R,Z as j,_ as L,$ as O,E as T,ad as Z,a4 as z}from"./index-d1ed2ead.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{p as A,q as K,r as S}from"./member-b450009c.js";const G={class:"dialog-footer"},re=M({__name:"add-member",emits:["complete"],setup(J,{expose:N,emit:P}){const p=b(!1),i=b(!1);let u="",c="";const f={member_id:"",nickname:"",member_no:"",init_member_no:"",mobile:"",password:"",password_copy:""},o=$({...f}),_=b(),D=B(()=>({member_no:[{required:!0,message:l("memberNoPlaceholder"),trigger:"blur"},{validator:C,trigger:"blur"}],mobile:[{required:!0,message:l("mobilePlaceholder"),trigger:"blur"},{validator:E,trigger:"blur"}],password:[{required:!0,message:l("passwordPlaceholder"),trigger:"blur"}],password_copy:[{required:!0,message:l("passwordPlaceholder"),trigger:"blur"},{validator:x,trigger:"blur"}]})),E=(d,e,a)=>{e&&!/^1[3-9]\d{9}$/.test(e)?a(new Error(l("mobileHint"))):a()},x=(d,e,a)=>{e!=o.password?a(l("doubleCipherHint")):a()},C=(d,e,a)=>{e&&!/^[0-9a-zA-Z]*$/g.test(e)?a(new Error(l("memberNoHint"))):a()},k=async()=>{await K().then(d=>{c=d.data}).catch(()=>{})},q=async d=>{if(i.value||!d)return;const e=S;await d.validate(async a=>{a&&(i.value=!0,e(o).then(w=>{i.value=!1,p.value=!1,P("complete")}).catch(()=>{i.value=!1}))})};return N({showDialog:p,setFormData:async(d=null)=>{if(i.value=!0,Object.assign(o,f),u=l("addMember"),d){u=l("updateMember");const e=await(await A(d.member_id)).data;e&&Object.keys(o).forEach(a=>{e[a]!=null&&(o[a]=e[a])})}else await k(),o.member_no=c,o.init_member_no=c;i.value=!1}}),(d,e)=>{const a=j,n=L,w=O,g=T,U=Z,F=z;return v(),V(U,{modelValue:p.value,"onUpdate:modelValue":e[8]||(e[8]=r=>p.value=r),title:t(u),width:"500px","destroy-on-close":!0},{footer:m(()=>[I("span",G,[s(g,{onClick:e[6]||(e[6]=r=>p.value=!1)},{default:m(()=>[h(y(t(l)("cancel")),1)]),_:1}),s(g,{type:"primary",loading:i.value,onClick:e[7]||(e[7]=r=>q(_.value))},{default:m(()=>[h(y(t(l)("confirm")),1)]),_:1},8,["loading"])])]),default:m(()=>[H((v(),V(w,{model:o,"label-width":"90px",ref_key:"formRef",ref:_,rules:t(D),class:"page-form"},{default:m(()=>[s(n,{label:t(l)("memberNo"),prop:"member_no"},{default:m(()=>[s(a,{modelValue:o.member_no,"onUpdate:modelValue":e[0]||(e[0]=r=>o.member_no=r),clearable:"",maxlength:"20",placeholder:t(l)("memberNoPlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),s(n,{label:t(l)("mobile"),prop:"mobile"},{default:m(()=>[s(a,{modelValue:o.mobile,"onUpdate:modelValue":e[1]||(e[1]=r=>o.mobile=r),clearable:"",placeholder:t(l)("mobilePlaceholder"),onKeyup:e[2]||(e[2]=r=>t(R)(r)),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),s(n,{label:t(l)("nickname")},{default:m(()=>[s(a,{modelValue:o.nickname,"onUpdate:modelValue":e[3]||(e[3]=r=>o.nickname=r),clearable:"",placeholder:t(l)("nickNamePlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),s(n,{label:t(l)("password"),prop:"password"},{default:m(()=>[s(a,{modelValue:o.password,"onUpdate:modelValue":e[4]||(e[4]=r=>o.password=r),type:"password",placeholder:t(l)("passwordPlaceholder"),clearable:"",class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),s(n,{label:t(l)("passwordCopy"),prop:"password_copy"},{default:m(()=>[s(a,{modelValue:o.password_copy,"onUpdate:modelValue":e[5]||(e[5]=r=>o.password_copy=r),type:"password",placeholder:t(l)("passwordPlaceholder"),clearable:"",class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","rules"])),[[F,i.value]])]),_:1},8,["modelValue","title"])}}});export{re as _};

View File

@ -1 +0,0 @@
import{_ as o}from"./add-table.vue_vue_type_script_setup_true_lang-0e13a748.js";import"./index-d1ed2ead.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./tools-dcf08d71.js";export{o as default};

View File

@ -1 +0,0 @@
import{d as T,f as k,r as u,n as E,q as L,h as p,I as _,w as o,a as b,y as x,u as t,t as h,N as n,e as d,i as B,ak as z,Z as q,E as F,am as I,ad as P,a4 as U}from"./index-d1ed2ead.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{j,k as G}from"./tools-dcf08d71.js";const te=T({__name:"add-table",setup(R,{expose:f}){const g=k(),m=u(!1),s=u(""),e=E({loading:!0,data:[],searchParam:{table_name:"",table_content:""}}),v=L(()=>e.data.filter(a=>!s.value||a.Name.toLowerCase().includes(s.value.toLowerCase())||a.Comment.toLowerCase().includes(s.value.toLowerCase()))),c=()=>{e.loading=!0,j().then(a=>{e.loading=!1,e.data=a.data}).catch(()=>{e.loading=!1})};c();const w=a=>{const l=a.Name;e.loading=!0,G({table_name:l}).then(i=>{e.loading=!1,m.value=!1,g.push({path:"/tools/code/edit",query:{id:i.data.id}})}).catch(()=>{e.loading=!1})};return f({showDialog:m,setFormData:async(a=null)=>{c()}}),(a,l)=>{const i=z,C=q,y=F,D=I,V=P,N=U;return p(),_(V,{modelValue:m.value,"onUpdate:modelValue":l[1]||(l[1]=r=>m.value=r),title:t(n)("addCode"),width:"800px","destroy-on-close":!0},{default:o(()=>[b("div",null,[x((p(),_(D,{data:t(v),size:"large",height:"400"},{empty:o(()=>[b("span",null,h(e.loading?"":t(n)("emptyData")),1)]),default:o(()=>[d(i,{prop:"Name",label:t(n)("tableName"),"min-width":"150"},null,8,["label"]),d(i,{prop:"Comment",label:t(n)("tableComment"),"min-width":"120"},null,8,["label"]),d(i,{align:"right","min-width":"150"},{header:o(()=>[d(C,{modelValue:s.value,"onUpdate:modelValue":l[0]||(l[0]=r=>s.value=r),size:"small",placeholder:t(n)("searchPlaceholder")},null,8,["modelValue","placeholder"])]),default:o(r=>[d(y,{size:"small",type:"primary",onClick:Z=>w(r.row)},{default:o(()=>[B(h(t(n)("addBtn")),1)]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[N,e.loading]])])]),_:1},8,["modelValue","title"])}}});export{te as _};

View File

@ -1 +0,0 @@
import{a1 as t}from"./index-d1ed2ead.js";function o(n){return t.get("addon/local",n,{showSuccessMessage:!0})}function a(n){return t.post(`addon/install/${n.addon}`,n)}function s(n){return t.post(`addon/cloudinstall/${n.addon}`,n,{timeout:60*1e3})}function l(n){return t.post(`addon/uninstall/${n.addon}`,n,{showSuccessMessage:!0})}function d(n){return t.get(`addon/install/check/${n}`,{timeout:30*1e3})}function u(){return t.get("addon/installtask")}function c(n){return t.get(`addon/cloudinstall/${n}`)}function i(n){return t.get(`addon/uninstall/check/${n}`,{timeout:30*1e3})}function r(n){return t.put(`addon/install/cancel/${n}`,{},{showErrorMessage:!1})}function g(){return t.get("addon/list/install")}export{o as a,u as b,s as c,c as d,i as e,r as f,g,a as i,d as p,l as u};

View File

@ -1 +0,0 @@
import{d as N,O as B,r as g,n as C,h as b,c as E,a as r,t as c,u as s,y,I as D,w as m,e as o,N as i,i as I,dk as F,dl as O,b2 as S,_ as U,ac as j,$ as L,E as R,a4 as T}from"./index-d1ed2ead.js";/* empty css *//* empty css *//* empty css *//* empty css */import{_ as k}from"./index-e6ce1da3.js";/* empty css */import{_ as J}from"./_plugin-vue_export-helper-c27b6911.js";/* empty css */import"./index.vue_vue_type_style_index_0_lang-81bae78b.js";/* empty css */import"./attachment-cb295d3a.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index.vue_vue_type_script_setup_true_lang-723f0499.js";/* empty css */const $={class:"main-container"},q={class:"flex ml-[18px] justify-between items-center mt-[20px]"},z={class:"text-page-title"},A={class:"panel-title !text-sm"},G={class:"form-tip"},H={class:"panel-title !text-sm"},K={class:"form-tip"},M={class:"fixed-footer-wrap"},P={class:"fixed-footer"},Q=N({__name:"adminlogin",setup(W){const h=B().meta.title,_=g(!0),d=g(),e=C({is_captcha:0,is_site_captcha:0,bg:"",site_bg:""});(async(p=0)=>{const t=await(await F()).data;Object.keys(e).forEach(a=>{["is_captcha","is_site_captcha"].includes(a)?e[a]=Boolean(Number(t[a])):e[a]=t[a]}),_.value=!1})();const v=async p=>{_.value||!p||await p.validate(t=>{if(t){const a=JSON.parse(JSON.stringify(e));Object.keys(a).forEach(l=>{["is_captcha","is_site_captcha"].includes(l)&&(a[l]=Number(a[l]))}),O(a).then(()=>{_.value=!1}).catch(()=>{_.value=!1})}})};return(p,t)=>{const a=S,l=U,u=k,f=j,x=L,V=R,w=T;return b(),E("div",$,[r("div",q,[r("span",z,c(s(h)),1)]),y((b(),D(x,{model:e,"label-width":"150px",ref_key:"ruleFormRef",ref:d,class:"page-form"},{default:m(()=>[o(f,{class:"box-card !border-none",shadow:"never"},{default:m(()=>[r("h3",A,c(s(i)("admin")),1),o(l,{label:s(i)("isCaptcha"),prop:"formData.is_auth_register"},{default:m(()=>[o(a,{modelValue:e.is_captcha,"onUpdate:modelValue":t[0]||(t[0]=n=>e.is_captcha=n)},null,8,["modelValue"])]),_:1},8,["label"]),o(l,{label:s(i)("bgImg")},{default:m(()=>[o(u,{modelValue:e.bg,"onUpdate:modelValue":t[1]||(t[1]=n=>e.bg=n)},null,8,["modelValue"]),r("div",G,c(s(i)("adminBgImgTip")),1)]),_:1},8,["label"])]),_:1}),o(f,{class:"box-card !border-none mt-4",shadow:"never"},{default:m(()=>[r("h3",H,c(s(i)("site")),1),o(l,{label:s(i)("isCaptcha"),prop:"formData.is_auth_register"},{default:m(()=>[o(a,{modelValue:e.is_site_captcha,"onUpdate:modelValue":t[2]||(t[2]=n=>e.is_site_captcha=n)},null,8,["modelValue"])]),_:1},8,["label"]),o(l,{label:s(i)("bgImg")},{default:m(()=>[o(u,{modelValue:e.site_bg,"onUpdate:modelValue":t[3]||(t[3]=n=>e.site_bg=n)},null,8,["modelValue"]),r("div",K,c(s(i)("siteBgImgTip")),1)]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])),[[w,_.value]]),r("div",M,[r("div",P,[o(V,{type:"primary",onClick:t[4]||(t[4]=n=>v(d.value))},{default:m(()=>[I(c(s(i)("save")),1)]),_:1})])])])}}});const Dt=J(Q,[["__scopeId","data-v-ef32cbf8"]]);export{Dt as default};

View File

@ -1 +0,0 @@
import{d as v,O as y,n as k,f as x,h as m,c as E,e as a,w as o,a as i,t as r,u as t,y as C,I as N,N as n,i as p,dm as B,ak as T,E as D,am as L,ac as A,a4 as V}from"./index-d1ed2ead.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css */const j={class:"main-container"},O={class:"flex justify-between items-center"},R={class:"text-page-title"},$={class:"mt-[20px]"},Y=v({__name:"agreement",setup(z){const _=y().meta.title,e=k({loading:!0,data:[]});(()=>{e.loading=!0,e.data=[],B().then(l=>{Object.keys(l.data).forEach(d=>e.data.push(l.data[d])),e.loading=!1}).catch(()=>{e.loading=!1})})();const u=x(),g=l=>{u.push(`/setting/agreement/edit?key=${l.agreement_key}`)};return(l,d)=>{const s=T,h=D,f=L,b=A,w=V;return m(),E("div",j,[a(b,{class:"box-card !border-none",shadow:"never"},{default:o(()=>[i("div",O,[i("span",R,r(t(_)),1)]),i("div",$,[C((m(),N(f,{data:e.data,size:"large"},{empty:o(()=>[i("span",null,r(e.loading?"":t(n)("emptyData")),1)]),default:o(()=>[a(s,{prop:"type_name",label:t(n)("typeName"),"min-width":"100","show-overflow-tooltip":!0},null,8,["label"]),a(s,{prop:"title",label:t(n)("title"),"min-width":"100","show-overflow-tooltip":!0},null,8,["label"]),a(s,{label:t(n)("updateTime"),"min-width":"180",align:"center"},{default:o(({row:c})=>[p(r(c.update_time||""),1)]),_:1},8,["label"]),a(s,{label:t(n)("operation"),align:"right",fixed:"right",width:"100"},{default:o(({row:c})=>[a(h,{type:"primary",link:"",onClick:q=>g(c)},{default:o(()=>[p(r(t(n)("config")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[w,e.loading]])])]),_:1})])}}});export{Y as default};

View File

@ -1 +0,0 @@
import{d as R,O as $,f as q,r as y,dn as I,n as P,q as S,N as r,h as k,c as T,a as l,u as a,t as p,y as j,I as O,w as m,e as s,i as x,dp as U,dq as A,Z as M,_ as z,$ as L,ac as Z,E as G,a4 as H}from"./index-d1ed2ead.js";/* empty css *//* empty css *//* empty css *//* empty css */import{_ as J}from"./index.vue_vue_type_script_setup_true_lang-326999fa.js";/* empty css */import"./index.vue_vue_type_style_index_0_lang-81bae78b.js";/* empty css */import"./attachment-cb295d3a.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index.vue_vue_type_script_setup_true_lang-723f0499.js";/* empty css */import"./_plugin-vue_export-helper-c27b6911.js";const K={class:"main-container"},Q={class:"detail-head"},W=l("span",{class:"iconfont iconxiangzuojiantou !text-xs"},null,-1),X={class:"ml-[1px]"},Y=l("span",{class:"adorn"},"|",-1),ee={class:"right"},te={class:"fixed-footer-wrap"},ae={class:"fixed-footer"},qe=R({__name:"agreement_edit",setup(oe){const u=$(),_=q(),f=u.query.key||"",i=y(!1),V=I(),w=u.meta.title,g={agreement_key:"",content:"",title:"",agreement_key_name:""},t=P({...g});i.value=!0,f&&(async(d="")=>{Object.assign(t,g);const e=await(await U(d)).data;Object.keys(t).forEach(o=>{e[o]!=null&&(t[o]=e[o])}),i.value=!1})(f);const v=y(),E=S(()=>({title:[{required:!0,message:r("titlePlaceholder"),trigger:"blur"}]})),C=async d=>{i.value||!d||await d.validate(async e=>{if(e){i.value=!0;const o=t;o.key=t.agreement_key,A(o).then(c=>{i.value=!1,b()}).catch(()=>{i.value=!1})}})},b=()=>{V.removeTab(u.path),_.push({path:"/setting/agreement"})};return(d,e)=>{const o=M,c=z,D=J,B=L,F=Z,h=G,N=H;return k(),T("div",K,[l("div",Q,[l("div",{class:"left",onClick:e[0]||(e[0]=n=>a(_).push({path:"/setting/agreement"}))},[W,l("span",X,p(a(r)("returnToPreviousPage")),1)]),Y,l("span",ee,p(a(w)),1)]),j((k(),O(F,{class:"box-card !border-none",shadow:"never"},{default:m(()=>[s(B,{model:t,"label-width":"90px",ref_key:"formRef",ref:v,rules:a(E),class:"page-form"},{default:m(()=>[s(c,{label:a(r)("type")},{default:m(()=>[s(o,{modelValue:t.agreement_key_name,"onUpdate:modelValue":e[1]||(e[1]=n=>t.agreement_key_name=n),modelModifiers:{trim:!0},readonly:"",class:"input-width"},null,8,["modelValue"])]),_:1},8,["label"]),s(c,{label:a(r)("title"),prop:"title"},{default:m(()=>[s(o,{modelValue:t.title,"onUpdate:modelValue":e[2]||(e[2]=n=>t.title=n),modelModifiers:{trim:!0},clearable:"",placeholder:a(r)("titlePlaceholder"),class:"input-width",maxlength:"20"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),s(c,{label:a(r)("content")},{default:m(()=>[s(D,{modelValue:t.content,"onUpdate:modelValue":e[3]||(e[3]=n=>t.content=n)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1},8,["model","rules"])]),_:1})),[[N,i.value]]),l("div",te,[l("div",ae,[s(h,{type:"primary",onClick:e[4]||(e[4]=n=>C(v.value))},{default:m(()=>[x(p(a(r)("save")),1)]),_:1}),s(h,{onClick:e[5]||(e[5]=n=>b())},{default:m(()=>[x(p(a(r)("cancel")),1)]),_:1})])])])}}});export{qe as default};

View File

@ -1 +0,0 @@
import{a1 as t}from"./index-d1ed2ead.js";function e(){return t.get("aliapp/config")}function p(a){return t.put("aliapp/config",a,{showSuccessMessage:!0})}function n(){return t.get("aliapp/static")}export{n as a,e as g,p as s};

View File

@ -1 +0,0 @@
import{d as C,f as V,K as N,r as y,n as R,y as M,h as l,c as x,a as e,t as s,u as a,N as o,e as u,w as c,F as D,G as T,R as j,I as U,i as z,B as k,ah as b,W as w,E as G,Y as K,al as O,an as P,ag as W,a4 as Y,p as $,g as q}from"./index-d1ed2ead.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css */import{_ as H}from"./apply_empty-cdca3e85.js";import{g as J}from"./addon-e2495bdc.js";import{_ as Q}from"./_plugin-vue_export-helper-c27b6911.js";const X=""+new URL("app_store_default-c0531792.png",import.meta.url).href,f=_=>($("data-v-e51b31c1"),_=_(),q(),_),Z={class:"box-border pt-[68px] px-[76px] overview-top"},ee={key:0},te={class:"flex justify-between items-center"},se={class:"font-[600] text-[26px] text-[#222] leading-[37px]"},ae={class:"font-[500] text-[14px] text-[#222] leading-[20px] mt-[12px]"},oe=f(()=>e("div",{class:"mr-[9px] text-[#3F3F3F] iconfont iconxiazai01"},null,-1)),ne={class:"font-[600] text-[14px] text-[#222] leading-[20px]"},pe={class:"flex flex-wrap mt-[40px]"},ce=["onClick"],ie={class:"bg-[#F7FAFB] py-[18px] px-[24px] flex items-center app-item-head"},re=f(()=>e("div",{class:"image-slot"},[e("img",{class:"w-[40px] h-[40px] rounded-[8px]",src:X})],-1)),le={class:"py-[18px] px-[24px]"},_e={class:"font-[600] leading-[1] text-[14px] text-[#222]"},de={class:"text-[13px] text-[#6D7278] leading-[18px] mt-[6px] truncate"},xe=f(()=>e("div",{class:"w-[230px] mx-auto"},[e("img",{src:H,class:"max-w-full",alt:""})],-1)),ue={class:"flex items-center"},me=C({__name:"app_manage",setup(_){const v=V(),m=N(),n=y(!0),d=R({appList:[]}),h=y({});(()=>{n.value=!0,J().then(p=>{Object.values(p.data).forEach((t,i)=>{t.type=="app"&&d.appList.push(t)}),m.routers.forEach((t,i)=>{t.children&&t.children.length?(t.name=b(t.children),h.value[t.meta.app]=b(t.children)):h.value[t.meta.app]=t.name}),n.value=!1}).catch(()=>{n.value=!1})})();const L=p=>{w.set({key:"menuAppStorage",data:p.key}),w.set({key:"plugMenuTypeStorage",data:""});const t=m.appMenuList;t.push(p.key),m.setAppMenuList(t);const i=h.value[p.key];v.push({name:i})},g=()=>{v.push("/app_manage/app_store")};return(p,t)=>{const i=G,F=K,E=O,S=P,I=W,A=Y;return M((l(),x("div",Z,[d.appList&&!n.value?(l(),x("div",ee,[e("div",te,[e("div",null,[e("div",se,s(a(o)("app")),1),e("div",ae,s(a(o)("versionInfo"))+" "+s(a(o)("currentVersion")),1)]),u(i,{onClick:g,class:"px-[15px]"},{default:c(()=>[oe,e("span",ne,s(a(o)("appStore")),1)]),_:1})]),e("div",pe,[(l(!0),x(D,null,T(d.appList,(r,B)=>(l(),x("div",{key:B,class:"app-item w-[280px] box-border !bg-[#fff] rounded-[6px] cursor-pointer mr-[20px] mb-[20px] overflow-hidden",onClick:fe=>L(r)},[e("div",ie,[u(F,{class:"w-[44px] h-[44px] rounded-[8px]",src:a(j)(r.icon),fit:"contain"},{error:c(()=>[re]),_:2},1032,["src"])]),e("div",le,[e("div",_e,s(r.title),1),u(E,{class:"box-item",effect:"light",content:r.desc,placement:"bottom-start"},{default:c(()=>[e("div",de,s(r.desc),1)]),_:2},1032,["content"])])],8,ce))),128)),!d.appList.length&&!n.value?(l(),U(I,{key:0,class:"mx-auto overview-empty"},{image:c(()=>[xe]),description:c(()=>[e("p",ue,[e("span",null,s(a(o)("descriptionLeft")),1),u(S,{type:"primary",onClick:g,class:"mx-[5px]"},{default:c(()=>[z(s(a(o)("link")),1)]),_:1}),e("span",null,s(a(o)("descriptionRight")),1)])]),_:1})):k("",!0)])])):k("",!0)])),[[A,n.value]])}}});const Be=Q(me,[["__scopeId","data-v-e51b31c1"]]);export{Be as default};

View File

@ -1 +0,0 @@
import{d as f,O as h,r as y,h as s,c as m,e,w as a,a as i,t as b,u as p,F as v,G as x,N as g,aO as V,aP as w,ac as E}from"./index-d1ed2ead.js";/* empty css *//* empty css */import{a as N}from"./attachment-cb295d3a.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index.vue_vue_type_script_setup_true_lang-723f0499.js";/* empty css */import"./_plugin-vue_export-helper-c27b6911.js";const k={class:"main-container attachment-container"},B={class:"flex justify-between items-center mb-[16px]"},C={class:"text-page-title"},rt=f({__name:"attachment",setup(T){const l=h().meta.title,o=["image","video","icon"],n=y(o[0]);return(O,r)=>{const c=V,_=w,d=E;return s(),m("div",k,[e(d,{class:"box-card !border-none full-container",shadow:"never"},{default:a(()=>[i("div",B,[i("span",C,b(p(l)),1)]),e(_,{modelValue:n.value,"onUpdate:modelValue":r[0]||(r[0]=t=>n.value=t)},{default:a(()=>[(s(),m(v,null,x(o,(t,u)=>e(c,{label:p(g)(t),name:t,key:u},{default:a(()=>[e(N,{scene:"attachment",type:t},null,8,["type"])]),_:2},1032,["label","name"])),64))]),_:1},8,["modelValue"])]),_:1})])}}});export{rt as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
const e="菜单名称",n="类型",t="api路径",o="目录",a="菜单",u="按钮",c="删除菜单会删除当前菜单以及该菜单下所有子菜单,是否确认删除?",l="重置菜单",i="重置菜单会将应用或插件的dict目录下的菜单配置文件中菜单配置更新到数据库一般用做开发者修改了dict菜单配置文件后同步到数据库操作。",s="如果用户手动调整过以下菜单项,通常不允诛进行本项操作,操作会重置为原始菜单。 请谨慎使用!",m="添加菜单",d="编辑菜单",h="路由路径",r="组件路径",p="选择应用",P="父级菜单",T="菜单图标",y="权重",M="权限标识",I="请输入菜单名称",N="请输入权限标识",v="菜单标识只能使用字母数字下划线并且开头不能为数字",w="请输入路由路径",z="请输入组件路径",K="请输入api路径",D="请选择菜单图标",S="顶级",B="菜单短标题",L="请输入菜单短标题",O={menuName:e,menuType:n,authId:t,menuTypeDir:o,menuTypeMenu:a,menuTypeButton:u,menuDeleteTips:c,initializeMenu:l,initializeMenuTipsOne:i,initializeMenuTipsTwo:s,addMenu:m,updateMenu:d,routePath:h,viewPath:r,addon:p,parentMenu:P,menuIcon:T,sort:y,menuKey:M,menuNamePlaceholder:I,menuKeyPlaceholder:N,menuKeyValidata:v,routePathPlaceholder:w,viewPathPlaceholder:z,authIdPlaceholder:K,selectIconPlaceholder:D,topLevel:S,menuShortName:B,menuShortNamePlaceholder:L};export{m as addMenu,p as addon,t as authId,K as authIdPlaceholder,O as default,l as initializeMenu,i as initializeMenuTipsOne,s as initializeMenuTipsTwo,c as menuDeleteTips,T as menuIcon,M as menuKey,N as menuKeyPlaceholder,v as menuKeyValidata,e as menuName,I as menuNamePlaceholder,B as menuShortName,L as menuShortNamePlaceholder,n as menuType,u as menuTypeButton,o as menuTypeDir,a as menuTypeMenu,P as parentMenu,h as routePath,w as routePathPlaceholder,D as selectIconPlaceholder,y as sort,S as topLevel,d as updateMenu,r as viewPath,z as viewPathPlaceholder};

View File

@ -1 +0,0 @@
const e="菜单名称",n="类型",t="权限标识",o="目录",a="菜单",c="按钮",u="确定要删除该菜单吗?",s="添加菜单",i="重置菜单",l="重置菜单会将应用或插件的dict目录下的菜单配置文件中菜单配置更新到数据库一般用做开发者修改了dict菜单配置文件后同步到数据库操作。",m="如果用户手动调整过以下菜单项,通常不允诛进行本项操作,操作会重置为原始菜单。 请谨慎使用!",d="编辑菜单",h="路由路径",r="组件路径",p="父级菜单",P="菜单图标",y="权重",T="菜单标识",M="请输入菜单名称",I="请输入菜单标识",N="菜单标识只能使用字母数字下划线并且开头不能为数字",v="请输入路由路径",w="请输入组件路径",z="请输入权限标识",K="请选择菜单图标",D="顶级",S="菜单短标题",B="请输入菜单短标题",L="选择应用",O="系统菜单",V="应用菜单",_={menuName:e,menuType:n,authId:t,menuTypeDir:o,menuTypeMenu:a,menuTypeButton:c,menuDeleteTips:u,addMenu:s,initializeMenu:i,initializeMenuTipsOne:l,initializeMenuTipsTwo:m,updateMenu:d,routePath:h,viewPath:r,parentMenu:p,menuIcon:P,sort:y,menuKey:T,menuNamePlaceholder:M,menuKeyPlaceholder:I,menuKeyValidata:N,routePathPlaceholder:v,viewPathPlaceholder:w,authIdPlaceholder:z,selectIconPlaceholder:K,topLevel:D,menuShortName:S,menuShortNamePlaceholder:B,addon:L,system:O,application:V};export{s as addMenu,L as addon,V as application,t as authId,z as authIdPlaceholder,_ as default,i as initializeMenu,l as initializeMenuTipsOne,m as initializeMenuTipsTwo,u as menuDeleteTips,P as menuIcon,T as menuKey,I as menuKeyPlaceholder,N as menuKeyValidata,e as menuName,M as menuNamePlaceholder,S as menuShortName,B as menuShortNamePlaceholder,n as menuType,c as menuTypeButton,o as menuTypeDir,a as menuTypeMenu,p as parentMenu,h as routePath,v as routePathPlaceholder,K as selectIconPlaceholder,y as sort,O as system,D as topLevel,d as updateMenu,r as viewPath,w as viewPathPlaceholder};

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
.el-timeline{--el-timeline-node-size-normal:12px;--el-timeline-node-size-large:14px;--el-timeline-node-color:var(--el-border-color-light);margin:0;font-size:var(--el-font-size-base);list-style:none}.el-timeline .el-timeline-item:last-child .el-timeline-item__tail{display:none}.el-timeline .el-timeline-item__center{display:flex;align-items:center}.el-timeline .el-timeline-item__center .el-timeline-item__wrapper{width:100%}.el-timeline .el-timeline-item__center .el-timeline-item__tail{top:0}.el-timeline .el-timeline-item__center:first-child .el-timeline-item__tail{height:calc(50% + 10px);top:calc(50% - 10px)}.el-timeline .el-timeline-item__center:last-child .el-timeline-item__tail{display:block;height:calc(50% - 10px)}.el-timeline-item{position:relative;padding-bottom:20px}.el-timeline-item__wrapper{position:relative;padding-left:28px;top:-3px}.el-timeline-item__tail{position:absolute;left:4px;height:100%;border-left:2px solid var(--el-timeline-node-color)}.el-timeline-item .el-timeline-item__icon{color:var(--el-color-white);font-size:var(--el-font-size-small)}.el-timeline-item__node{position:absolute;background-color:var(--el-timeline-node-color);border-color:var(--el-timeline-node-color);border-radius:50%;box-sizing:border-box;display:flex;justify-content:center;align-items:center}.el-timeline-item__node--normal{left:-1px;width:var(--el-timeline-node-size-normal);height:var(--el-timeline-node-size-normal)}.el-timeline-item__node--large{left:-2px;width:var(--el-timeline-node-size-large);height:var(--el-timeline-node-size-large)}.el-timeline-item__node.is-hollow{background:var(--el-color-white);border-style:solid;border-width:2px}.el-timeline-item__node--primary{background-color:var(--el-color-primary);border-color:var(--el-color-primary)}.el-timeline-item__node--success{background-color:var(--el-color-success);border-color:var(--el-color-success)}.el-timeline-item__node--warning{background-color:var(--el-color-warning);border-color:var(--el-color-warning)}.el-timeline-item__node--danger{background-color:var(--el-color-danger);border-color:var(--el-color-danger)}.el-timeline-item__node--info{background-color:var(--el-color-info);border-color:var(--el-color-info)}.el-timeline-item__dot{position:absolute;display:flex;justify-content:center;align-items:center}.el-timeline-item__content{color:var(--el-text-color-primary)}.el-timeline-item__timestamp{color:var(--el-text-color-secondary);line-height:1;font-size:var(--el-font-size-small)}.el-timeline-item__timestamp.is-top{margin-bottom:8px;padding-top:4px}.el-timeline-item__timestamp.is-bottom{margin-top:8px}.app-text[data-v-ab16ef82]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;-o-text-overflow:ellipsis}.main[data-v-ab16ef82]{background-color:var(--el-bg-color-overlay)}em[data-v-ab16ef82]{font-style:normal}.timeline-log-wrap[data-v-ab16ef82]{background:#F5F7F9}html.dark .timeline-log-wrap[data-v-ab16ef82]{background:var(--el-bg-color);color:var(--el-text-color-regular)}.auth-code-dialog .el-overlay{background-color:transparent}.auth-code-dialog .el-dialog__header{padding:0}.auth-code-dialog .el-dialog__body{padding:20px 30px}

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{d as O,O as G,r as v,n as x,h as i,c as E,a as b,t as u,u as l,y as S,I as d,w as o,e as n,N as r,dr as k,B as f,i as _,F as H,G as I,b2 as K,_ as L,Z as W,aK as j,aL as M,aM as P,ds as $,ac as Z,$ as q,E as J,a4 as Q}from"./index-d1ed2ead.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{b as X,G as Y,H as ee}from"./member-b450009c.js";const te={class:"main-container bg-[#fff] rounded-[4px]"},ae={class:"flex ml-[18px] justify-between items-center pt-[20px]"},oe={class:"text-page-title"},le=b("span",{class:"ml-2"},"%",-1),se={class:"fixed-footer-wrap"},re={class:"fixed-footer"},ke=O({__name:"cash_out",setup(ne){const R=G().meta.title,c=v(!0),y=v(),t=x({is_auto_transfer:"0",is_auto_verify:"0",is_open:"0",min:"0.01",rate:"0",transfer_type:[]}),V=v([]);(async()=>{V.value=await(await X()).data})(),(async(m=0)=>{const e=await(await Y()).data;Object.keys(t).forEach(s=>{e[s]!=null&&(t[s]=e[s])}),t.is_open=Boolean(Number(t.is_open)),c.value=!1})();const C=x({min:[{validator:(m,e,s)=>{Number(e)<.01?s(new Error(r("cashWithdrawalAmountHint"))):s()},trigger:"blur"}],rate:[{validator:(m,e,s)=>{Number(e)>100||Number(e)<0?s(new Error(r("commissionRatioHint"))):s()},trigger:"blur"}]}),N=async m=>{c.value||!m||await m.validate(e=>{if(e){const s={...t};s.is_open=Number(s.is_open).toString(),ee(s).then(()=>{c.value=!1}).catch(()=>{c.value=!1})}})};return(m,e)=>{const s=K,p=L,w=W,g=j,h=M,F=P,B=$,T=Z,D=q,U=J,z=Q;return i(),E("div",te,[b("div",ae,[b("span",oe,u(l(R)),1)]),S((i(),d(D,{model:t,"label-width":"150px",ref_key:"ruleFormRef",ref:y,rules:C,class:"page-form"},{default:o(()=>[n(T,{class:"box-card !border-none",shadow:"never"},{default:o(()=>[n(p,{label:l(r)("isOpen")},{default:o(()=>[n(s,{modelValue:t.is_open,"onUpdate:modelValue":e[0]||(e[0]=a=>t.is_open=a)},null,8,["modelValue"])]),_:1},8,["label"]),t.is_open?(i(),d(p,{key:0,label:l(r)("cashWithdrawalAmount"),prop:"min"},{default:o(()=>[n(w,{modelValue:t.min,"onUpdate:modelValue":e[1]||(e[1]=a=>t.min=a),onKeyup:e[2]||(e[2]=a=>l(k)(a)),class:"input-width",placeholder:l(r)("cashWithdrawalAmountPlaceholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])):f("",!0),t.is_open?(i(),d(p,{key:1,label:l(r)("commissionRatio"),prop:"rate"},{default:o(()=>[n(w,{modelValue:t.rate,"onUpdate:modelValue":e[3]||(e[3]=a=>t.rate=a),onKeyup:e[4]||(e[4]=a=>l(k)(a)),class:"input-width",placeholder:l(r)("commissionRatioPlaceholder")},null,8,["modelValue","placeholder"]),le]),_:1},8,["label"])):f("",!0),t.is_open?(i(),d(p,{key:2,label:l(r)("audit"),class:"items-center"},{default:o(()=>[n(h,{modelValue:t.is_auto_verify,"onUpdate:modelValue":e[5]||(e[5]=a=>t.is_auto_verify=a)},{default:o(()=>[n(g,{label:"0",size:"large"},{default:o(()=>[_(u(l(r)("manualAudit")),1)]),_:1}),n(g,{label:"1",size:"large"},{default:o(()=>[_(u(l(r)("automaticAudit")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"])):f("",!0),t.is_open?(i(),d(p,{key:3,label:l(r)("transfer"),class:"items-center"},{default:o(()=>[n(h,{modelValue:t.is_auto_transfer,"onUpdate:modelValue":e[6]||(e[6]=a=>t.is_auto_transfer=a)},{default:o(()=>[n(g,{label:"0",size:"large"},{default:o(()=>[_(u(l(r)("manualTransfer")),1)]),_:1}),n(g,{label:"1",size:"large"},{default:o(()=>[_(u(l(r)("automatedTransit")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"])):f("",!0),t.is_open?(i(),d(p,{key:4,label:l(r)("transferMode"),class:"items-center"},{default:o(()=>[n(B,{modelValue:t.transfer_type,"onUpdate:modelValue":e[7]||(e[7]=a=>t.transfer_type=a),size:"large"},{default:o(()=>[(i(!0),E(H,null,I(V.value,(a,A)=>(i(),d(F,{label:a.key,key:"a"+A},{default:o(()=>[_(u(a.name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"])):f("",!0)]),_:1})]),_:1},8,["model","rules"])),[[z,c.value]]),b("div",se,[b("div",re,[n(U,{type:"primary",onClick:e[8]||(e[8]=a=>N(y.value))},{default:o(()=>[_(u(l(r)("save")),1)]),_:1})])])])}}});export{ke as default};

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
const o="操作提示",e="下载之后需使用微信开发者工具上传代码,微信开发者工具下载地址",s="上传之后登录微信公众平台,在版本管理中选择刚上传的版本提交审核,审核通过之后即可发布小程序。",n="小程序名称",c="小程序ID",t="小程序原始ID",p="小程序信息",a="小程序代码",d="版本",i="下载",l="代码下载",w="下载代码",r="请先完善小程序配置",T="下载小程序代码包",u="上传代码",D="下载完成之后,使用微信开发工具进行上传",h="发布小程序",P="上传之后提交审核,审核通过发布小程序",I="小程序版本",g="关闭",m="版本号",R="请输入版本号",v="小程序代码",O="请上传小程序代码",f="版本说明",b="接入流程",C="订阅消息",N="版本管理",A="请输入版本说明",B="小程序代码上传中",F="状态",M="预览",S="上传代码需先绑定授权码如果已有授权请先进行绑定没有授权可到niucloud官网购买云服务之后再进行操作",V="绑定授权",W="去niucloud官网",_="失败原因",x="去配置",j="一键云端发布",k="本地发布",q="请先将uni-app编译成微信小程序然后使用微信开发者工具进行上传",y={operatePrompt:o,operatePromptTipsOne:e,operatePromptTipsTwo:s,weappName:n,weappId:c,weappOriginalId:t,weappInfo:p,versionCode:a,version:d,down:i,codeDown:l,downWeappCode:w,weappTips:r,codeDownOneTips:T,codeDownTwoDesc:u,codeDownTwoTips:D,codeDownThreeDesc:h,codeDownThreeTips:P,weappVersion:I,close:g,code:m,codePlaceholder:R,path:v,pathPlaceholder:O,content:f,weappAccessFlow:b,subscribeMessage:C,weappRelease:N,contentPlaceholder:A,uploadingTips:B,status:F,preview:M,authTips:S,toBind:V,toNiucloud:W,failReason:_,toSetting:x,cloudRelease:j,localRelease:k,localInsertTips:q};export{S as authTips,g as close,j as cloudRelease,m as code,l as codeDown,T as codeDownOneTips,h as codeDownThreeDesc,P as codeDownThreeTips,u as codeDownTwoDesc,D as codeDownTwoTips,R as codePlaceholder,f as content,A as contentPlaceholder,y as default,i as down,w as downWeappCode,_ as failReason,q as localInsertTips,k as localRelease,o as operatePrompt,e as operatePromptTipsOne,s as operatePromptTipsTwo,v as path,O as pathPlaceholder,M as preview,F as status,C as subscribeMessage,V as toBind,W as toNiucloud,x as toSetting,B as uploadingTips,d as version,a as versionCode,b as weappAccessFlow,c as weappId,p as weappInfo,n as weappName,t as weappOriginalId,N as weappRelease,r as weappTips,I as weappVersion};

View File

@ -1 +0,0 @@
const e="类型",s="回复内容",o="是否启用",t="编号",n="操作",a="温馨提示",c="请在小程序的服务类目中添加类目:一级类目:商业服务 二级类目:软件/建站/技术开发",p="小程序最多支持50个消息模板获取时请注意小程序剩余模板数量是否充足",i="买家消息",r="卖家消息",l="启用",w="禁用",b="关闭",u="开启",T="重新获取",g="接入流程",d="订阅消息",m="版本管理",A="一键获取",M={name:e,response:s,isStart:o,serialNumber:t,operation:n,operationTip:a,operationTipOne:c,operationTipTwo:p,buyerNews:i,sellerMessage:r,started:l,closed:w,close:b,open:u,regain:T,weappAccessFlow:g,subscribeMessage:d,weappRelease:m,batchAcquisition:A};export{A as batchAcquisition,i as buyerNews,b as close,w as closed,M as default,o as isStart,e as name,u as open,n as operation,a as operationTip,c as operationTipOne,p as operationTipTwo,T as regain,s as response,r as sellerMessage,t as serialNumber,l as started,d as subscribeMessage,g as weappAccessFlow,m as weappRelease};

View File

@ -1 +0,0 @@
const e="类型",o="消息类型",t="是否启用",s="编号",n="操作",c="温馨提示",a="请将微信公众平台的服务类目选择为:商业服务——>软件/建站/技术开发,生活服务——>百货/超市/便利店,工具—>信息查询,所选行业不一致将会导致模板消息不可用。",r="公众号可设置20个服务类目每月只能修改5次,请谨慎选择。",i="公众号最多支持25个模板消息获取时请注意公众号剩余模板数量是否充足",p="所需跳转到的小程序必须与发模板消息的公众号是绑定关联关系,暂不支持小游戏",l="买家消息",T="卖家消息",u="启用",m="禁用",w="关闭",h="开启",b="回复内容",g="重新获取",y="一键获取",d="接入流程",A="自定义菜单",F="模板消息",M="自动回复",N={name:e,messageType:o,isStart:t,serialNumber:s,operation:n,operationTip:c,operationTipOne:a,operationTipTwo:r,operationTipThree:i,operationTipFour:p,buyerNews:l,sellerMessage:T,started:u,closed:m,close:w,open:h,response:b,regain:g,batchAcquisition:y,wechatAccessFlow:d,customMenu:A,wechatTemplate:F,reply:M};export{y as batchAcquisition,l as buyerNews,w as close,m as closed,A as customMenu,N as default,t as isStart,o as messageType,e as name,h as open,n as operation,c as operationTip,p as operationTipFour,a as operationTipOne,i as operationTipThree,r as operationTipTwo,g as regain,M as reply,b as response,T as sellerMessage,s as serialNumber,u as started,d as wechatAccessFlow,F as wechatTemplate};

View File

@ -1 +0,0 @@
.el-collapse[data-v-fef1a4e9],.el-collapse-item .el-collapse-item__wrap[data-v-fef1a4e9]{border:0px!important}[data-v-fef1a4e9] .el-tabs__item:hover{border-bottom:2px solid var(--el-color-primary)}[data-v-fef1a4e9] .el-tabs__item{padding:0}[data-v-fef1a4e9] .el-tabs__item+.el-tabs__item{margin-right:20px;margin-left:20px}[data-v-fef1a4e9] .el-tabs--top .el-tabs__active-bar{display:none}[data-v-fef1a4e9] .el-tabs--top .el-tabs__item.is-active{border-bottom:2px solid var(--el-color-primary)}[data-v-fef1a4e9] .el-tabs--top .el-tabs__item.is-top:nth-child(2){margin-right:20px}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
.visit-btn[data-v-6533acd4]{color:var(--el-color-primary)}

View File

@ -1 +0,0 @@
import{a1 as b,d as D,O as I,r as v,n as F,b1 as O,b0 as R,s as $,a2 as g,N as a,h,c as j,a as n,t as u,u as l,y as H,I as M,w as i,e as r,i as U,b2 as L,_ as T,Z,ac as z,$ as A,E as G,a4 as J}from"./index-d1ed2ead.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{_ as K}from"./_plugin-vue_export-helper-c27b6911.js";function P(){return b.get("channel/h5/config")}function Q(_){return b.put("channel/h5/config",_,{showSuccessMessage:!0})}const W={class:"main-container bg-[#fff] rounded-[4px]"},X={class:"flex ml-[18px] justify-between items-center pt-[20px]"},Y={class:"text-page-title"},ee={class:"fixed-footer-wrap"},te={class:"fixed-footer"},se=D({__name:"config",setup(_){const y=I().meta.title,o=v(!0),e=F({is_open:!0,request_url:""}),d=v();P().then(t=>{Object.assign(e,t.data),e.is_open=Boolean(Number(e.is_open)),o.value=!1}),O().then(t=>{e.request_url=t.data.wap_url+"/"});const{copy:w,isSupported:x,copied:f}=R(),C=t=>{if(!x.value){g({message:a("notSupportCopy"),type:"warning"});return}w(t)};$(f,()=>{f.value&&g({message:a("copySuccess"),type:"success"})});const E=()=>{window.open(e.request_url)},k=async t=>{o.value||!t||await t.validate(async s=>{if(s){o.value=!0;const c={...e};c.is_open=Number(c.is_open),Q(c).then(()=>{o.value=!1}).catch(()=>{o.value=!1})}})};return(t,s)=>{const c=L,m=T,N=Z,V=z,q=A,B=G,S=J;return h(),j("div",W,[n("div",X,[n("span",Y,u(l(y)),1)]),H((h(),M(q,{model:e,"label-width":"150px",ref_key:"formRef",ref:d,class:"page-form"},{default:i(()=>[r(V,{class:"box-card !border-none",shadow:"never"},{default:i(()=>[r(m,{label:l(a)("isOpen")},{default:i(()=>[r(c,{modelValue:e.is_open,"onUpdate:modelValue":s[0]||(s[0]=p=>e.is_open=p)},null,8,["modelValue"])]),_:1},8,["label"]),r(m,{label:l(a)("h5DomainName")},{default:i(()=>[r(N,{"model-value":e.request_url,class:"input-width",readonly:!0},{append:i(()=>[n("div",{class:"cursor-pointer",onClick:s[1]||(s[1]=p=>C(e.request_url))},u(l(a)("copy")),1)]),_:1},8,["model-value"]),n("span",{class:"ml-2 cursor-pointer visit-btn",onClick:E},u(l(a)("clickVisit")),1)]),_:1},8,["label"])]),_:1})]),_:1},8,["model"])),[[S,o.value]]),n("div",ee,[n("div",te,[r(B,{type:"primary",loading:o.value,onClick:s[2]||(s[2]=p=>k(d.value))},{default:i(()=>[U(u(l(a)("save")),1)]),_:1},8,["loading"])])])])}}});const _e=K(se,[["__scopeId","data-v-7f2ec82c"]]);export{_e as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{a1 as g,d as I,O as B,r as f,n as D,b1 as R,b0 as F,s as O,a2 as v,N as o,y as P,h as U,c as $,a as r,t as u,u as c,e as n,w as i,i as j,_ as L,b2 as M,Z as T,ac as Z,$ as z,E as A,a4 as G,p as H,g as J}from"./index-d1ed2ead.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{_ as K}from"./_plugin-vue_export-helper-c27b6911.js";const Q=""+new URL("preview-52aad803.png",import.meta.url).href;function W(){return g.get("channel/pc/config")}function X(p){return g.put("channel/pc/config",p,{showSuccessMessage:!0})}const Y=p=>(H("data-v-6533acd4"),p=p(),J(),p),ee={class:"main-container bg-[#fff] rounded-[4px]"},te={class:"flex pl-[18px] justify-between items-center pt-[20px]"},se={class:"text-page-title"},ae=Y(()=>r("img",{class:"w-[500px]",src:Q,alt:""},null,-1)),oe={class:"fixed-footer-wrap"},ne={class:"fixed-footer"},le=I({__name:"config",setup(p){const w=B().meta.title,s=f(!0),e=D({is_open:!1,request_url:""}),d=f();R().then(t=>{e.request_url=t.data.web_url+"/",s.value=!1}),W().then(t=>{Object.assign(e,t.data),e.is_open=Boolean(Number(e.is_open)),s.value=!1});const{copy:b,isSupported:h,copied:m}=F(),y=t=>{if(!h.value){v({message:o("notSupportCopy"),type:"warning"});return}b(t)};O(m,()=>{m.value&&v({message:o("copySuccess"),type:"success"})});const x=()=>{window.open(e.request_url)},C=async t=>{s.value||!t||await t.validate(async a=>{if(a){s.value=!0;const l={...e};l.is_open=Number(l.is_open),X(l).then(()=>{s.value=!1}).catch(()=>{s.value=!1})}})};return(t,a)=>{const l=L,E=M,S=T,N=Z,k=z,V=A,q=G;return P((U(),$("div",ee,[r("div",te,[r("span",se,u(c(w)),1)]),n(k,{model:e,"label-width":"150px",ref_key:"formRef",ref:d,class:"page-form"},{default:i(()=>[n(N,{class:"box-card !border-none",shadow:"never"},{default:i(()=>[n(l,{label:c(o)("preview"),prop:"weapp_name"},{default:i(()=>[ae]),_:1},8,["label"]),n(l,{label:c(o)("isOpen")},{default:i(()=>[n(E,{modelValue:e.is_open,"onUpdate:modelValue":a[0]||(a[0]=_=>e.is_open=_)},null,8,["modelValue"])]),_:1},8,["label"]),n(l,{label:c(o)("PCDomainName")},{default:i(()=>[n(S,{"model-value":e.request_url,class:"input-width",readonly:!0},{append:i(()=>[r("div",{class:"cursor-pointer",onClick:a[1]||(a[1]=_=>y(e.request_url))},u(c(o)("copy")),1)]),_:1},8,["model-value"]),r("span",{class:"ml-2 cursor-pointer visit-btn",onClick:x},u(c(o)("clickVisit")),1)]),_:1},8,["label"])]),_:1})]),_:1},8,["model"]),r("div",oe,[r("div",ne,[n(V,{type:"primary",loading:s.value,onClick:a[2]||(a[2]=_=>C(d.value))},{default:i(()=>[j(u(c(o)("save")),1)]),_:1},8,["loading"])])])])),[[q,s.value]])}}});const ve=K(le,[["__scopeId","data-v-6533acd4"]]);export{ve as default};

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
import{d as U,O as E,r as g,n as f,N as a,h as v,c as N,e as o,w as s,a as p,t as u,u as t,y as P,I as D,i as R,dv as C,dw as B,_ as F,Z as I,ac as L,$ as O,E as S,a4 as j}from"./index-d1ed2ead.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{_ as $}from"./index-e6ce1da3.js";/* empty css */import"./index.vue_vue_type_style_index_0_lang-81bae78b.js";/* empty css */import"./attachment-cb295d3a.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index.vue_vue_type_script_setup_true_lang-723f0499.js";/* empty css */import"./_plugin-vue_export-helper-c27b6911.js";const q={class:"main-container"},T={class:"flex justify-between items-center"},Z={class:"text-page-title"},z={class:"panel-title !text-sm"},A={class:"panel-title !text-sm"},G={class:"fixed-footer-wrap"},H={class:"fixed-footer"},ke=U({__name:"copyright",setup(J){const b=E().meta.title,n=g(!0),l=f({icp:"",gov_record:"",gov_url:"",market_supervision_url:"",logo:"",company_name:"",copyright_link:"",copyright_desc:""});(async(c=0)=>{const e=await(await C()).data;Object.keys(l).forEach(m=>{e[m]!=null&&(l[m]=e[m])}),n.value=!1})();const h=g(),y=f({site_name:[{required:!0,message:a("siteNamePlaceholder"),trigger:"blur"}]}),V=async c=>{n.value||!c||await c.validate(async e=>{e&&(n.value=!0,B(l).then(()=>{n.value=!1}).catch(()=>{n.value=!1}))})};return(c,e)=>{const m=$,i=F,d=I,_=L,w=O,x=S,k=j;return v(),N("div",q,[o(_,{class:"box-card !border-none",shadow:"never"},{default:s(()=>[p("div",T,[p("span",Z,u(t(b)),1)]),P((v(),D(w,{model:l,"label-width":"150px",ref_key:"formRef",ref:h,rules:y,class:"page-form"},{default:s(()=>[o(_,{class:"box-card !border-none",shadow:"never"},{default:s(()=>[p("h3",z,u(t(a)("copyrightEdit")),1),o(i,{label:t(a)("logo")},{default:s(()=>[o(m,{modelValue:l.logo,"onUpdate:modelValue":e[0]||(e[0]=r=>l.logo=r)},null,8,["modelValue"])]),_:1},8,["label"]),o(i,{label:t(a)("companyName"),prop:"company_name"},{default:s(()=>[o(d,{modelValue:l.company_name,"onUpdate:modelValue":e[1]||(e[1]=r=>l.company_name=r),placeholder:t(a)("companyNamePlaceholder"),class:"input-width",clearable:"",maxlength:"30"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),o(i,{label:t(a)("copyrightLink")},{default:s(()=>[o(d,{modelValue:l.copyright_link,"onUpdate:modelValue":e[2]||(e[2]=r=>l.copyright_link=r),placeholder:t(a)("copyrightLinkPlaceholder"),class:"input-width",clearable:""},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),o(i,{label:t(a)("copyrightDesc")},{default:s(()=>[o(d,{modelValue:l.copyright_desc,"onUpdate:modelValue":e[3]||(e[3]=r=>l.copyright_desc=r),type:"textarea",rows:"4",clearable:"",placeholder:t(a)("copyrightDescPlaceholder"),class:"input-width",maxlength:"150"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1}),o(_,{class:"box-card !border-none mt-[16px]",shadow:"never"},{default:s(()=>[p("h3",A,u(t(a)("putOnRecordEdit")),1),o(i,{label:t(a)("icp"),prop:"icp"},{default:s(()=>[o(d,{modelValue:l.icp,"onUpdate:modelValue":e[4]||(e[4]=r=>l.icp=r),placeholder:t(a)("icpPlaceholder"),class:"input-width",clearable:"",maxlength:"20"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),o(i,{label:t(a)("govRecord")},{default:s(()=>[o(d,{modelValue:l.gov_record,"onUpdate:modelValue":e[5]||(e[5]=r=>l.gov_record=r),placeholder:t(a)("govRecordPlaceholder"),class:"input-width",clearable:"",maxlength:"50"},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),o(i,{label:t(a)("govUrl")},{default:s(()=>[o(d,{modelValue:l.gov_url,"onUpdate:modelValue":e[6]||(e[6]=r=>l.gov_url=r),placeholder:t(a)("govUrlPlaceholder"),class:"input-width",clearable:""},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),o(i,{label:t(a)("marketSupervisionUrl")},{default:s(()=>[o(d,{modelValue:l.market_supervision_url,"onUpdate:modelValue":e[7]||(e[7]=r=>l.market_supervision_url=r),rows:"4",clearable:"",placeholder:t(a)("marketSupervisionUrlPlaceholder"),class:"input-width"},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})]),_:1},8,["model","rules"])),[[k,n.value]])]),_:1}),p("div",G,[p("div",H,[o(x,{type:"primary",loading:n.value,onClick:e[8]||(e[8]=r=>V(h.value))},{default:s(()=>[R(u(t(a)("save")),1)]),_:1},8,["loading"])])])])}}});export{ke as default};

View File

@ -1 +0,0 @@
import{d as m,O as h,f as u,h as w,c as f,a as s,u as t,t as e,N as n,e as r,w as a,i,E as v,ac as g}from"./index-d1ed2ead.js";/* empty css *//* empty css */const y=""+new URL("weapp_1-7017a047.png",import.meta.url).href,b=""+new URL("weapp_2-8fac7fa5.png",import.meta.url).href,T=""+new URL("weapp_3-07a2249e.png",import.meta.url).href,k=""+new URL("weapp_4-d837a9b1.png",import.meta.url).href,E={class:"main-container"},R={class:"detail-head"},j=s("span",{class:"iconfont iconxiangzuojiantou !text-xs"},null,-1),C={class:"ml-[1px]"},L=s("span",{class:"adorn"},"|",-1),N={class:"right"},U={class:"mt-[20px]"},B={class:"flex"},O=s("div",{class:"min-w-[60px]"},[s("span",{class:"flex justify-center items-center block w-[40px] h-[40px] border-[1px] border-primary rounded-[999px] text-primary"},"1")],-1),V={class:"flex items-center text-[14px]"},q=s("div",{class:"w-[100%] mt-[10px]"},[s("img",{class:"w-[100%]",src:y})],-1),F={class:"flex mt-[40px]"},P=s("div",{class:"min-w-[60px]"},[s("span",{class:"flex justify-center items-center block w-[40px] h-[40px] border-[1px] border-primary rounded-[999px] text-primary"},"2")],-1),S={class:"flex items-center text-[14px]"},z=s("div",{class:"w-[100%] mt-[10px]"},[s("img",{class:"w-[100%]",src:b})],-1),A={class:"flex mt-[40px]"},D=s("div",{class:"min-w-[60px]"},[s("span",{class:"flex justify-center items-center block w-[40px] h-[40px] border-[1px] border-primary rounded-[999px] text-primary"},"3")],-1),K={class:"flex items-center text-[14px]"},$={class:"text-primary"},G=s("div",{class:"w-[100%] mt-[10px]"},[s("img",{class:"w-[100%]",src:T})],-1),H={class:"flex mt-[40px]"},I=s("div",{class:"min-w-[60px]"},[s("span",{class:"flex justify-center items-center block w-[40px] h-[40px] border-[1px] border-primary rounded-[999px] text-primary"},"4")],-1),J={class:"flex items-center text-[14px]"},M=s("span",{class:"text-primary"},"URL / Token / EncondingAESKey",-1),Q=s("div",{class:"w-[100%] mt-[10px]"},[s("img",{class:"w-[100%]",src:k})],-1),es=m({__name:"course",setup(W){const c=h(),p=u(),l=c.meta.title,d=()=>{window.open("https://mp.weixin.qq.com/","_blank")};return(X,o)=>{const _=v,x=g;return w(),f("div",E,[s("div",R,[s("div",{class:"left",onClick:o[0]||(o[0]=Y=>t(p).push({path:"/channel/weapp"}))},[j,s("span",C,e(t(n)("returnToPreviousPage")),1)]),L,s("span",N,e(t(l)),1)]),r(x,{class:"box-card !border-none",shadow:"never"},{default:a(()=>[s("div",U,[s("div",B,[O,s("div",null,[s("p",V,[i(e(t(n)("writingTipsOne1")),1),r(_,{link:"",type:"primary",onClick:d},{default:a(()=>[i(e(t(n)("writingTipsOne2")),1)]),_:1}),i(","+e(t(n)("writingTipsOne3")),1)]),q])]),s("div",F,[P,s("div",null,[s("p",S,e(t(n)("writingTipsTwo1")),1),z])]),s("div",A,[D,s("div",null,[s("p",K,[i(e(t(n)("writingTipsThree1")),1),s("span",$,e(t(n)("writingTipsThree2")),1)]),G])]),s("div",H,[I,s("div",null,[s("p",J,[i(e(t(n)("writingTipsFour1")),1),M,i(e(t(n)("writingTipsFour2")),1)]),Q])])])]),_:1})])}}});export{es as default};

Some files were not shown because too many files have changed in this diff Show More