摘要: 公司搬移, 作为git仓库的服务器IP地址变了。 本地代码挺多,重新检出太占时间,可以修改一个什么配置让我本地仓库和新的远程仓库建立关联吗, 答案是肯定的! 方法有很多,这里简单介绍几种: 以下均以项目git_test为例:老地址:http://192.168.1.12:9797/john/git_ 阅读全文
posted @ 2025-04-17 17:43 俊豪(Alvin) 阅读(201) 评论(0) 推荐(0)
摘要: // 视图配置 模板引擎类型使用Think 'type' => 'Think', // 使用 think 需要增加 依赖库 composer require topthink/think-view 各位大侠们 看完扫个红包呗,可以省钱,免费的哦,扫完了别忘了用。也可以直接把红包发给我,多少都不闲,就 阅读全文
posted @ 2025-04-08 20:53 俊豪(Alvin) 阅读(11) 评论(0) 推荐(0)
摘要: 设置凭证助手:开启 Git 的凭证助手功能。 git config --global credential.helper store 执行 git pull:当你首次执行 git pull 操作时,输入账号和密码,Git 就会把这些凭证信息保存到本地文件里。 git pull origin main 阅读全文
posted @ 2025-03-30 15:44 俊豪(Alvin) 阅读(42) 评论(0) 推荐(0)
摘要: // 加密数据 public function encryptApi(Request $Request) { $app_data = $Request->input('app'); // 要加密的数据 $admin_data = $Request->input('admin'); // 要加密的数据 阅读全文
posted @ 2024-11-29 22:12 俊豪(Alvin) 阅读(120) 评论(0) 推荐(0)
摘要: //上传图片 public function upload_imageApi(SysArticleImageRequest $Request) { $usrStr = $Request->getScheme() . '://' . $Request->getHost(); $fileInfos = 阅读全文
posted @ 2024-06-26 14:46 俊豪(Alvin) 阅读(33) 评论(0) 推荐(0)
摘要: 比如<select class="selector"></select> 1、设置value为pxx的项选中 $(".selector").val("pxx"); 2、设置text为pxx的项选中 $(".selector").find("option[text='pxx']").attr("sel 阅读全文
posted @ 2021-12-22 17:59 俊豪(Alvin) 阅读(573) 评论(0) 推荐(0)
摘要: 1、引入form组件require(['form'], function(Form){}); 2、生成form元素 3、绑定事件之验证(也可以绑定总表单事件Form.events.bindevent(form))Form.api.bindevent(form, success, error, sub 阅读全文
posted @ 2021-11-13 17:46 俊豪(Alvin) 阅读(1249) 评论(0) 推荐(0)
摘要: 单个字符分割strings="abcdeabcdeabcde";string[]sArray=s.Split('c');foreach(stringiinsArray)Console.WriteLine(i.ToString());输出下面的结果:abdeabdeabde多个字符分割strings= 阅读全文
posted @ 2021-11-11 17:13 俊豪(Alvin) 阅读(5030) 评论(0) 推荐(0)
摘要: // 方法一:通过计算时间戳function getAgeByID($id){ //过了这年的生日才算多了1周岁 if(empty($id)) return ''; //获得出生年月日的时间戳 $date=strtotime(substr($id,6,8)); //获得今日的时间戳 $today=s 阅读全文
posted @ 2021-09-23 14:33 俊豪(Alvin) 阅读(659) 评论(0) 推荐(0)
摘要: 问题描述:新站站点可以使用 关机再开不能使用 新建站点 不能访问接口 可以访问首页 接口404 直接入正题 入口文件夹里有一个文件.htaccess 这个文件打开如果没有内容 问题就出现在这 <IfModule mod_rewrite.c> Options +FollowSymlinks Rewri 阅读全文
posted @ 2021-09-22 14:23 俊豪(Alvin) 阅读(668) 评论(0) 推荐(0)