11 2023 档案
摘要:https://zh.mojotv.cn/go/refactor-base64-captcha 点击下图链接 跳转到github中: 使用单机部署: 生成图片验证码: package Controllers // 图形验证码 import ( "github.com/gin-gonic/gin" "
阅读全文
摘要:<?php function my_dir($dir) { $files = []; if(@$handle = opendir($dir)) { while(($file = readdir($handle)) !== false) { if($file != ".." && $file != "
阅读全文
摘要:# 单点检测 $this->verifySignLogin($admin->id, $params['mobile'], $token); /** * @param $uid * @param $token */ private function verifySignLogin($uid, $mob
阅读全文
摘要:/** * @return \think\response\Json */ public function upload() { // 获取上传的文件 $file = Request::file('link'); $savePath = $this->imagIckCompress($file);
阅读全文
摘要:public function httpTest() { $url = "自己可以写一个模拟地址,例如下面的 httpTest2 先让他挂起一定的时间,timeout设置超时时间,如果超过timeout的时间 会自动抛出异常,去发短信等..."; $client = new Client(); tr
阅读全文
摘要:# https://market.aliyun.com/products/57124001/cmapi00050254.html?spm=5176.2020520132.101.3.15a1721807SkgN#sku=yuncode44254000019 仅限企业 照片清晰、曝光正常,人脸完整无遮
阅读全文
摘要:public function upload() { $data = Request::param('link'); $type = Request::param('type'); $image_parts = explode(";base64,", $data); $image_type = ex
阅读全文
摘要:/** * @return \think\response\Json */ public function upload() { $data = file_get_contents("php://input"); $fileType = ''; $this->getFileType($data, $
阅读全文