摘要: from flask import Flask,requestapp = Flask(__name__) post获取ordersn_list=str(request.form['ordersn_list']) shopid=int(request.form['shopid']) limit=req 阅读全文
posted @ 2020-03-25 21:15 xiondun 阅读(1118) 评论(0) 推荐(0)
摘要: Python—操作redis Python操作redis python连接方式:点击 下面介绍详细使用 1、String 操作 redis中的String在在内存中按照一个name对应一个value来存储 set() #在Redis中设置值,默认不存在则创建,存在则修改 r.set('name', 阅读全文
posted @ 2020-03-25 20:51 xiondun 阅读(205) 评论(0) 推荐(0)
摘要: /** * 支付完成通知 * @param request * @param response * @return * @throws Exception */ @RequestMapping(value = "/notify",method = RequestMethod.POST) public 阅读全文
posted @ 2020-03-25 14:31 xiondun 阅读(6858) 评论(0) 推荐(0)
摘要: centos命令提示符显示完整目录 配置方法: 1.编辑profile文件,添加环境变量PS1 su root //切换到root用户 vim /etc/profile //打开profile文件 在profile内容最下面添加如下内容: export PS1='[\u@\h `pwd`]\$' 2 阅读全文
posted @ 2020-03-24 20:49 xiondun 阅读(1013) 评论(0) 推荐(0)
摘要: header("Access-Control-Allow-Origin:*"); header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept, X-Token"); header("Acce 阅读全文
posted @ 2020-03-23 15:20 xiondun 阅读(267) 评论(0) 推荐(0)
摘要: centOS7添加开机启动服务/执行脚本 1 开机启动服务 /etc/rc.d/rc.local 后追加shell脚本 在centos7中添加开机自启服务非常方便,只需要两条命令(以Jenkins为例): #设置jenkins服务为自启动服务 systemctl enable jenkins.ser 阅读全文
posted @ 2020-03-20 19:27 xiondun 阅读(992) 评论(0) 推荐(0)
摘要: /** * @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 阅读(2258) 评论(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 阅读(2829) 评论(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 阅读(983) 评论(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 阅读(293) 评论(0) 推荐(0)