摘要: //本月 $calcStartMonth = strtotime(date('Y-m')); //第一天 $calcEndMonth = strtotime(date('Y-m-t 23:59:59', $calcStartMonth)); //最后一天 //上个月 $calcStartMonth 阅读全文
posted @ 2024-05-24 15:49 贱贱丶 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 将本服务器的ssh端口22改为1068后,git pull和git push时, 出现:ssh: connect to host gitee.com port [端口]: Connection timed out 错误 目测是因为,gitee的链接,使用的是SSH协议,但是服务器的端口由22变为了1 阅读全文
posted @ 2024-05-11 10:28 贱贱丶 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 1、现在需要导出的index.html里添加导出按钮 <a href="javascript:;" class="btn btn-info btn-export {:$auth->check('transportation/transport/export')?'':'hide'}" title=" 阅读全文
posted @ 2024-04-19 17:48 贱贱丶 阅读(311) 评论(0) 推荐(0) 编辑
摘要: function getWeek($year = null, $month = null, $day = null) { if (empty($year)) { $year = date('Y', time()); // 获取本年 } if (empty($month)) { $month = da 阅读全文
posted @ 2024-01-17 17:43 贱贱丶 阅读(47) 评论(0) 推荐(0) 编辑
摘要: $this->view->config($name, $value); 例如我只想修改index.html里的模板标签 $this->view->config("taglib_begin", '<'); $this->view->config("taglib_end", '>'); 提示:在conf 阅读全文
posted @ 2022-09-14 22:14 贱贱丶 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 先创建一个全局变量 然后在登录接口的request页面中添加一下代码var jsonData = JSON.parse(responseBody); postman.setGlobalVariable("token", jsonData.data.userinfo.token); 注意:【jsonD 阅读全文
posted @ 2022-08-22 20:59 贱贱丶 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 第一步: 登陆服务器后,在命令行处输入命令: vim /etc/ssh/sshd_config 进入查看后,单击字母:i(作用为开启编辑,不然是编辑不了文件的) 第二步: 往下滑,找到以下两行配置 #ClientAliveInterval 0 #ClientAliveCountMax 10 把他们最 阅读全文
posted @ 2022-08-17 17:16 贱贱丶 阅读(522) 评论(0) 推荐(0) 编辑
摘要: layer.open({ id:1, type: 1, title:'删除', skin:'layui-layer-rim', area:['450px', 'auto'], // closeBtn :1,//右上角的关闭按钮取消 content: ' <div class="row" style= 阅读全文
posted @ 2022-07-21 16:02 贱贱丶 阅读(520) 评论(0) 推荐(0) 编辑
摘要: 将base64保存成文件,存于本地,可将此方法添加到common.php文件里,后面调用时,调用 $ret = saveBase64($base64_str) function saveBase64($base64_img) { //目录的upload文件夹下 $up_dir = ROOT_PATH 阅读全文
posted @ 2022-06-01 17:42 贱贱丶 阅读(384) 评论(0) 推荐(0) 编辑
摘要: //发送邮件 宝塔邮件系统发送 protected function send_mail() { $postdata = [ 'mail_from' => '创建的用户', 'password' => '创建的用户密码', 'mail_to' => $this->toEmail,//发送给谁 'su 阅读全文
posted @ 2022-01-17 14:55 贱贱丶 阅读(661) 评论(0) 推荐(0) 编辑