摘要: /** * @Description: curl请求 * @Author: Yang * @param $url * @param null $data * @param string $method * @param array $header * @param bool $https * @pa 阅读全文
posted @ 2020-03-20 14:50 xiondun 阅读(2243) 评论(0) 推荐(0) 编辑
摘要: import pymongo from pymongo import MongoClient from gridfs import GridFS class GFS(object): def __init__(self, file_db,file_table): self.file_db = fil 阅读全文
posted @ 2020-03-19 15:12 xiondun 阅读(2744) 评论(0) 推荐(1) 编辑
摘要: # -*- coding=utf-8 -*- from flask import Flask from datetime import timedelta import datetime from flask_cors import * # 导入模块 def create_app(): app = 阅读全文
posted @ 2020-03-19 14:08 xiondun 阅读(958) 评论(0) 推荐(0) 编辑
摘要: <?php namespace app\模块名\controller; use app\common\controller\JWTController; use app\控制器名\model\控制器名Model; use think\Request; // use think\Validate; c 阅读全文
posted @ 2020-03-18 17:05 xiondun 阅读(264) 评论(0) 推荐(0) 编辑
摘要: phpqrcode类库官网下载地址:https://sourceforge.net/projects/phpqrcode/ 1.我们先看看php是怎么生成二维码的 1.首先我们先下载一下 phpqrcode 类库。 2.下载完后解压我们会发现 phpqrcode文件夹 里面有一堆的文件,但是我们只需 阅读全文
posted @ 2020-03-17 16:52 xiondun 阅读(543) 评论(0) 推荐(0) 编辑
摘要: 本文实例讲述了php获取文件mime类型的方法。分享给大家供大家参考。具体如下: 1.使用 mime_content_type 方法 1 string mime_content_type ( string $filename ) Returns the MIME content type for a 阅读全文
posted @ 2020-03-17 16:37 xiondun 阅读(550) 评论(0) 推荐(0) 编辑
摘要: /** * 将秒数转换成时分秒 * * @param 秒数 $seconds * @return void */ function changeTimeType($seconds) { if ($seconds > 3600) { $hours = intval($seconds / 3600); 阅读全文
posted @ 2020-03-17 11:06 xiondun 阅读(2585) 评论(0) 推荐(0) 编辑
摘要: function authority($auth) { // pre($_SESSION); // pre(Session::get('role')); // $role_arr=explode(',', $_SESSION['role']); $role_arr = Session::get('r 阅读全文
posted @ 2020-03-17 10:33 xiondun 阅读(125) 评论(0) 推荐(0) 编辑
摘要: scp [参数] <源地址(用户名@IP地址或主机名)>:<文件路径> <目的地址(用户名 @IP 地址或主机名)>:<文件路径> 举例: scp /home/work/source.txt work@192.168.0.10:/home/work/ #把本地的source.txt文件拷贝到192. 阅读全文
posted @ 2020-03-15 23:27 xiondun 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 解决git pull/push每次都需要输入密码问题 如果我们git clone的下载代码的时候是连接的https://而不是git@git (ssh)的形式,当我们操作git pull/push到远程的时候,总是提示我们输入账号和密码才能操作成功,频繁的输入账号和密码会很麻烦。 解决办法: git 阅读全文
posted @ 2020-03-15 22:03 xiondun 阅读(593) 评论(0) 推荐(0) 编辑