会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
迷失在路上
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
4
5
6
7
8
9
10
11
12
···
14
下一页
2019年2月25日
utf-8 字符串转为Unicode编码格式
摘要: function to_unicode($string) { $str = mb_convert_encoding($string, 'UCS-2', 'UTF-8'); $arrstr = str_split($str, 2); $unistr = ''; foreach ($arrstr as
阅读全文
posted @ 2019-02-25 09:23 迷失在路上
阅读(1162)
评论(0)
推荐(0)
2019年2月23日
laravel 验证 unique 除了当前记录 验证唯一性
摘要: use Illuminate\Validation\Rule; Rule::unique('helpness_type')->where(function($query)use($input){ return $query->where('id','!=',$input['id'])->where('deleted_at', null);})
阅读全文
posted @ 2019-02-23 09:56 迷失在路上
阅读(3178)
评论(0)
推荐(0)
2019年2月21日
Class meta
摘要: class Meta做为嵌套类,主要目的是给上级类添加一些功能,或者指定一些标准. class Main(models.Model): img = models.CharField(max_length=200) # 图片 name = models.CharField(max_length=100
阅读全文
posted @ 2019-02-21 14:14 迷失在路上
阅读(5737)
评论(0)
推荐(2)
2019年2月20日
python搭建开发环境
摘要: 转载自:https://www.zmrenwu.com/post/3/ 万分感谢! 本教程使用的开发环境 本教程写作时开发环境的系统平台为 Windows 10 (64 位),Python 版本为 3.5.2 (64 位),Django 版本为 1.10.6。 建议尽可能地与教程的开发环境保持一致(
阅读全文
posted @ 2019-02-20 16:17 迷失在路上
阅读(480)
评论(0)
推荐(0)
2019年2月13日
django初探
摘要: 首先在确保python已经安装之后(3.7), 安装django. 刚开始学习 只做了简单的测试 就是控制器与视图,路由的链接 首先 然后将子路由文件引入到主路由文件中 也就是根目录的urls文件 接着 创建目录中的有关控制器 如 index.py 在该文件中创建demo方法 在子路由文件中正常写路
阅读全文
posted @ 2019-02-13 12:01 迷失在路上
阅读(144)
评论(0)
推荐(0)
2018年12月30日
linux下安装Composer
摘要: 1/ 创建home/composer 2/ curl -sS https://getcomposer.org/install | php 报错:zlib扩展未安装 3/ 先安装扩展 在php编译文件夹中进行phpize 报错: " cannot find config,mp4 " 执行cp conf
阅读全文
posted @ 2018-12-30 14:11 迷失在路上
阅读(465)
评论(0)
推荐(0)
2018年12月18日
文件记录追加 file_put_content
摘要: !!!! 项目中操作记录很重要 file_put_content( 'alipayNotify.txt',data('Y-m-d H:i:s',time()).json_encode($data). PHP_EOL,FILE_APPEND)
阅读全文
posted @ 2018-12-18 11:07 迷失在路上
阅读(627)
评论(0)
推荐(0)
2018年12月11日
微信支付の退款申请
摘要: 首先 是以官方的SDK接口为核心 处理必须的商户平台的支付资料之外 这些参数大概就可以了 这些基本配置是基础 容易出错的是 证书的路径问题 以laravel为基础 我在public/Uploads/cert 下创建证书文件夹 在配置证书路径时 用绝对路径 可采用
阅读全文
posted @ 2018-12-11 10:06 迷失在路上
阅读(236)
评论(0)
推荐(0)
2018年9月28日
自定义导出表格
摘要: 可参考: https://www.cnblogs.com/koxi/p/9703184.html $filename = 'demo'; $title = array('序号','申请时间','申请人','备注名称','申请人手机号','提现金额','操作时间','操作人'); $data = ar
阅读全文
posted @ 2018-09-28 16:15 迷失在路上
阅读(294)
评论(0)
推荐(0)
异步处理接口 fsockopen
摘要: 参考: https://blog.csdn.net/lampsunny/article/details/72819354 本地测试使用
阅读全文
posted @ 2018-09-28 15:40 迷失在路上
阅读(123)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
11
12
···
14
下一页
公告