11 2023 档案

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

点击右上角即可分享
微信分享提示