摘要: 首先: composer require topthink/think-captcha v3.0.8 把这张图片下载,后缀名png改成zip,解压到: vendor/topthink 阅读全文
posted @ 2022-12-13 14:55 _迷途 阅读(55) 评论(0) 推荐(0) 编辑
摘要: composer require topthink/think-filesystem 阅读全文
posted @ 2022-12-13 11:02 _迷途 阅读(533) 评论(0) 推荐(0) 编辑
摘要: ^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d 阅读全文
posted @ 2022-12-07 15:12 _迷途 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 首先开启多应用的方法: composer require topthink/think-multi-app 定义路由: <?php use think\facade\Route; Route::any('/user/login', '\\app\\index\\controller\\User@lo 阅读全文
posted @ 2022-12-03 22:20 _迷途 阅读(411) 评论(0) 推荐(0) 编辑
摘要: Particle\Validator是一个小巧优雅的实用的PHP验证类库,提供了一个非常简洁的API。它无需依赖其他组件,提供友好的文档,并且有利于扩展。 composer require particle/validator use Particle\Validator\Validator; $v 阅读全文
posted @ 2022-11-24 16:20 _迷途 阅读(104) 评论(0) 推荐(0) 编辑
摘要: <?php function formatNum(int $time) { if ($time < 10) { return "0{$time}"; } return $time; } function changeTimeType(int $num): string { $millisecond 阅读全文
posted @ 2022-11-16 19:54 _迷途 阅读(218) 评论(0) 推荐(0) 编辑
摘要: <?php function formatNum(int $time) { if ($time < 10) { return "0{$time}"; } return $time; } function changeTimeType(int $num): string { $millisecond 阅读全文
posted @ 2022-11-15 13:38 _迷途 阅读(48) 评论(0) 推荐(0) 编辑
摘要: import java.util.ArrayList; public class Hello { public static void main(String[] args) { String s = "我爱JAVA"; System.out.println(s2unicode(s)); } sta 阅读全文
posted @ 2022-09-22 00:08 _迷途 阅读(446) 评论(1) 推荐(0) 编辑
摘要: <?php namespace app\admin\validate; use think\validate; class VideoKeywords extends validate { protected $rule = [ 'keyword' => ['require', 'unique' = 阅读全文
posted @ 2022-07-28 17:23 _迷途 阅读(144) 评论(0) 推荐(0) 编辑
摘要: import json import os, sys import platform import time from seleniumwire import webdriver from selenium.webdriver.firefox.firefox_binary import Firefo 阅读全文
posted @ 2022-07-28 17:19 _迷途 阅读(417) 评论(0) 推荐(0) 编辑