ComposerUpdate

This commit is contained in:
邹景立 2021-03-27 15:03:10 +08:00
parent 2d3995ca19
commit cb3f8fc042
9 changed files with 29 additions and 23 deletions

View File

@ -9,8 +9,8 @@
<button class='layui-btn layui-btn-sm layui-btn-primary' data-action='{:url("remove")}' data-confirm="确定要删除这些文章吗?" data-rule="id#{key}">删除文章</button>
<!--{/if}-->
<!--{if auth("news_mark/index")}-->
<button class='layui-btn layui-btn-sm layui-btn-primary' data-iframe='{:url("news_mark/index")}' data-title="标签管理" data-width="900px">标签管理</button>
<!--{if auth("news.mark/index")}-->
<button class='layui-btn layui-btn-sm layui-btn-primary' data-iframe='{:url("news.mark/index")}' data-title="标签管理" data-width="900px">标签管理</button>
<!--{/if}-->
{/block}

View File

@ -33,18 +33,21 @@
<td>{if $vo.status eq 0}<span class="color-red">已禁用</span>{elseif $vo.status eq 1}<span class="color-green">已激活</span>{/if}</td>
<td class="text-left nowrap">{$vo.create_at|format_datetime}</td>
<td class='text-left nowrap'>
{if auth("edit")}
<!--{if auth("edit")}-->
<a class="layui-btn layui-btn-sm" data-dbclick data-modal="{:url('edit')}?id={$vo.id}" data-title="编辑标签" data-width="500px">编 辑</a>
{/if}
{if auth("state") and $vo.status eq 1}
<!--{/if}-->
<!--{if auth("state") and $vo.status eq 1}-->
<a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('state')}" data-value="id#{$vo.id};status#0">禁 用</a>
{/if}
{if auth("state") and $vo.status eq 0}
<!--{/if}-->
<!--{if auth("state") and $vo.status eq 0}-->
<a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('state')}" data-value="id#{$vo.id};status#1">激 活</a>
{/if}
{if auth("remove")}
<!--{/if}-->
<!--{if auth("remove")}-->
<a class="layui-btn layui-btn-sm layui-btn-danger" data-action="{:url('remove')}" data-confirm="确定要删除该标签吗?" data-value="id#{$vo.id}">删 除</a>
{/if}
<!--{/if}-->
</td>
</tr>
{/foreach}

View File

@ -1,7 +1,7 @@
{extend name="../../admin/view/main"}
{block name="content"}
{include file='shop_goods/formstyle'}
{include file='shop/goods/formstyle'}
<form autocomplete="off" class='layui-form layui-card' data-auto="true" id="GoodsForm" method="post" onsubmit="return false;">
<div class="layui-card-body padding-40 padding-bottom-20">

View File

@ -15,8 +15,8 @@
<!--{/if}-->
{/if}
<!--{if auth("shop_goods_mark/index")}-->
<button class='layui-btn layui-btn-sm layui-btn-primary' data-iframe='{:url("shop_goods_mark/index")}' data-title="标签管理" data-width="900px">标签管理</button>
<!--{if auth("goods.mark/index")}-->
<button class='layui-btn layui-btn-sm layui-btn-primary' data-iframe='{:url("shop.mark/index")}' data-title="标签管理" data-width="900px">标签管理</button>
<!--{/if}-->
{/block}

View File

@ -834,12 +834,12 @@
"source": {
"type": "git",
"url": "https://github.com/zoujingli/ThinkLibrary.git",
"reference": "385e86100c264130347432a65e765b67bcabbc10"
"reference": "bf9ef59bb4f9a6e470c1792b229646148b9b7476"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/385e86100c264130347432a65e765b67bcabbc10",
"reference": "385e86100c264130347432a65e765b67bcabbc10",
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/bf9ef59bb4f9a6e470c1792b229646148b9b7476",
"reference": "bf9ef59bb4f9a6e470c1792b229646148b9b7476",
"shasum": "",
"mirrors": [
{
@ -856,7 +856,7 @@
"ext-mbstring": "*",
"topthink/framework": "^6.0"
},
"time": "2021-03-24T02:12:51+00:00",
"time": "2021-03-27T06:55:32+00:00",
"type": "library",
"extra": {
"think": {

2
vendor/services.php vendored
View File

@ -1,5 +1,5 @@
<?php
// This file is automatically generated at:2021-03-27 14:25:59
// This file is automatically generated at:2021-03-27 15:02:52
declare (strict_types = 1);
return array (
0 => 'think\\admin\\Library',

View File

@ -16,7 +16,7 @@ declare (strict_types=1);
namespace think\admin\multiple;
use think\helper\Str;
use think\admin\service\NodeService;
use think\route\Url;
/**
@ -48,7 +48,7 @@ class BuildUrl extends Url
$action = empty($path) ? $request->action() : array_pop($path);
$controller = empty($path) ? $request->controller() : array_pop($path);
$app = empty($path) ? $this->app->http->getName() : array_pop($path);
$url = Str::snake($controller) . '/' . $action;
$url = NodeService::nameTolower($controller) . '/' . $action;
$bind = $this->app->config->get('app.domain_bind', []);
if ($key = array_search($app, $bind)) {
isset($bind[$_SERVER['SERVER_NAME']]) && $domain = $_SERVER['SERVER_NAME'];
@ -62,7 +62,11 @@ class BuildUrl extends Url
return $url;
}
public function build()
/**
* Build URL
* @return string
*/
public function build(): string
{
$url = $this->url;
$vars = $this->vars;

View File

@ -31,7 +31,7 @@ class NodeService extends Service
* @param string $name
* @return string
*/
public function nameTolower(string $name): string
public static function nameTolower(string $name): string
{
$dots = [];
foreach (explode('.', strtr($name, '/', '.')) as $dot) {

View File

@ -18,7 +18,6 @@ declare (strict_types=1);
namespace think\admin\service;
use think\admin\Service;
use think\App;
use think\db\Query;
use think\helper\Str;