Skip to content

Commit ca7f75e

Browse files
committed
feat: blog style optimized
1 parent 8b120a5 commit ca7f75e

File tree

73 files changed

+1696
-1984
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+1696
-1984
lines changed

module/Blog/Docs/release.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
- 新增:博客留言新增接口
44
- 优化:博客首页轮播位置动态注册(需要后台重新设置博客首页轮播图片)
5+
- 优化:博客列表页面图片响应式大小优化
56
- 修复:博客留言接口提交异常的问题
67

78
---

module/Blog/View/pc/blog/inc/blogItems.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class="tw-rounded-3xl tw-text-gray-400 tw-block tw-bg-gray-100 tw-leading-6 tw-m
4949
@endif
5050
</div>
5151
@if(!empty($record['_cover']))
52-
<div class="tw-w-40 tw-ml-4 tw-flex-shrink-0">
52+
<div class="lg:tw-w-40 tw-w-20 tw-ml-4 tw-flex-shrink-0">
5353
<div class="ub-cover-3-2 tw-rounded" style="background-image:url({{$record['_cover']}})"></div>
5454
</div>
5555
@endif

module/Vendor/Installer/install.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,9 @@ function doStepEnv(){
153153
<?php function_exists('bcmul') ? text_success('bcmath 扩展') : text_error('缺少 PHP bcmath 扩展'); ?>
154154
<?php class_exists('pdo') ? text_success('PDO PHP 扩展') : text_error('缺少 PDO PHP 扩展'); ?>
155155
<?php (class_exists('pdo') && in_array('mysql', PDO::getAvailableDrivers())) ? text_success('PDO Mysql 驱动正常') : text_error('缺少 PDO Mysql 驱动'); ?>
156-
<?php function_exists('mb_internal_encoding') ? text_success('缺少 Mbstring PHP 扩展') : text_error('Mbstring PHP 扩展'); ?>
157-
<?php function_exists('token_get_all') ? text_success('缺少 Tokenizer PHP 扩展') : text_error('Tokenizer PHP 扩展'); ?>
158-
<?php function_exists('finfo_file') ? text_success('缺少 PHP Fileinfo 扩展') : text_error('PHP Fileinfo 扩展'); ?>
156+
<?php function_exists('mb_internal_encoding') ? text_success('缺少 Mbstring PHP 扩展') : text_error('缺少 Mbstring PHP 扩展'); ?>
157+
<?php function_exists('token_get_all') ? text_success('缺少 Tokenizer PHP 扩展') : text_error('缺少 Tokenizer PHP 扩展'); ?>
158+
<?php function_exists('finfo_file') ? text_success('缺少 PHP Fileinfo 扩展') : text_error('缺少 PHP Fileinfo 扩展'); ?>
159159
<?php if(version_compare(PHP_VERSION,'5.6.0','ge') && version_compare(PHP_VERSION,'5.7.0','lt')){ ?>
160160
<?php EnvUtil::iniFileConfig('always_populate_raw_post_data')=='-1' ? text_success('验证 always_populate_raw_post_data=-1') : text_error('请配置 always_populate_raw_post_data=-1','https://modstart.com/doc/install/qa.html'); ?>
161161
<?php } ?>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
4+
namespace Module\Vendor\Provider\PersonVerify;
5+
6+
7+
abstract class AbstractPersonVerifyIdCardProvider
8+
{
9+
abstract public function name();
10+
11+
abstract public function title();
12+
13+
14+
abstract public function verify($name, $idCardNumber, $param = []);
15+
16+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?php
2+
3+
4+
namespace Module\Vendor\Provider\PersonVerify;
5+
6+
7+
use Module\Vendor\Provider\ProviderTrait;
8+
9+
class PersonVerifyIdCardProvider
10+
{
11+
use ProviderTrait;
12+
13+
14+
public static function all()
15+
{
16+
return self::listAll();
17+
}
18+
19+
20+
public static function get($name)
21+
{
22+
return self::getByName($name);
23+
}
24+
25+
public static function first()
26+
{
27+
foreach (self::all() as $provider) {
28+
return $provider;
29+
}
30+
return null;
31+
}
32+
33+
public static function firstResponse($name, $idCardNumber, $param = [])
34+
{
35+
$provider = self::first();
36+
if (!$provider) {
37+
return null;
38+
}
39+
return $provider->verify($name, $idCardNumber, $param);
40+
}
41+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
3+
4+
namespace Module\Vendor\Provider\PersonVerify;
5+
6+
7+
class PersonVerifyIdCardResponse
8+
{
9+
const STATUS_SUCCESS = 'success';
10+
const STATUS_FAIL = 'fail';
11+
12+
public $code;
13+
public $msg;
14+
public $status;
15+
16+
public static function build($code, $msg, $status = null)
17+
{
18+
$instance = new static();
19+
$instance->code = $code;
20+
$instance->msg = $msg;
21+
$instance->status = $status;
22+
return $instance;
23+
}
24+
}

module/Vendor/Tecmz/Tecmz.php

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
class Tecmz
1111
{
12-
static $API_BASE = null;
12+
public static $API_BASE = 'https://api.tecmz.com/open_api';
1313

1414
private $appId;
1515
private $appSecret;
@@ -18,7 +18,6 @@ class Tecmz
1818

1919
public function __construct($appId, $appSecret = null)
2020
{
21-
self::$API_BASE = 'https://api.tecmz.com/open_api';
2221
$this->appId = $appId;
2322
$this->appSecret = $appSecret;
2423
}
@@ -66,10 +65,11 @@ private function request($gate, $param = [])
6665
$param['timestamp'] = time();
6766
$param['sign'] = SignUtil::common($param, $this->appSecret);
6867
}
68+
$url = self::$API_BASE . $gate;
6969
if ($this->debug) {
70-
Log::debug('TecmzApi -> ' . self::$API_BASE . $gate . ' -> ' . json_encode($param));
70+
Log::debug('TecmzApi -> ' . $url . ' -> ' . json_encode($param, JSON_UNESCAPED_UNICODE));
7171
}
72-
return CurlUtil::postJSONBody(self::$API_BASE . $gate, $param);
72+
return CurlUtil::postJSONBody($url, $param);
7373
}
7474

7575

@@ -223,4 +223,13 @@ public function ocr($format, $imageData)
223223
return $this->request('/ocr', $post);
224224
}
225225

226+
227+
public function personVerifyIdCard($name, $idCardNumber)
228+
{
229+
$post = [];
230+
$post['name'] = $name;
231+
$post['idCardNumber'] = $idCardNumber;
232+
return $this->request('/person_verify_id_card', $post);
233+
}
234+
226235
}

public/asset/common/base.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/asset/common/editor.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/asset/entry/basic.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)