08 2017 档案

摘要:直接数据库操作 查询 更新 插入更新删除 事务 //事务的基本结构(多表更新插入操作请使用事务处理) $dbTrans= Yii::app()->db->beginTransaction(); try{ $post= new Post; $post->'title'= 'Hello dodobook 阅读全文
posted @ 2017-08-30 13:13 6671 阅读(645) 评论(0) 推荐(0)
摘要:1 '不能为空'], 15 //[['username'], 'unique','message'=>'{attribute}已经被占用了'], 16 ['password', 'validatePass'], 17 ]; 18 } 19 20 public function validatePas... 阅读全文
posted @ 2017-08-24 11:39 6671 阅读(367) 评论(0) 推荐(0)
摘要:git 安装我就不说了 一直next (注意配置git环境变量)注册github 我也不说了 (一)检查 ssh-key cd ~/.ssh (提示No such file or directory 则表示没有key) (二)生成新的ssh key。 ssh-keygen -t rsa -C "xx 阅读全文
posted @ 2017-08-24 11:24 6671 阅读(226) 评论(0) 推荐(0)
摘要:1 $userIP ='180.96.11.189'; 2 $data = $this->post($userIP); 1 public function post($ip,$https=true,$method='get',$data=null) 2 { 3 $url = 'http://int.dpool.sina.com.cn/iplookup/iploo... 阅读全文
posted @ 2017-08-23 09:35 6671 阅读(2069) 评论(0) 推荐(0)
摘要:1. 绑定域名 先登录微信公众平台进入“公众号设置”的“功能设置”里填写“JS接口安全域名”。 2. 获取签名包 3. 引入JS文件 在需要调用JS接口的页面引入如下JS文件,(支持https): 4.通过config接口注入权限验证配置 所有需要使用JS-SDK的页面必须先注入配置信息,否则将无法 阅读全文
posted @ 2017-08-18 14:28 6671 阅读(1082) 评论(0) 推荐(0)
摘要:插件,亦即Plug-in,是指一类特定的功能模块(通常由第三方开发者实现)它的特点: 1. 随时安装、卸载、激活、禁用2. 无论什么状态都不影响系统核心模块的运行,3. 是一种非侵入式的模块化设计,实现了核心程序与插件程序的松散耦合。一个健壮的PHP插件机制,我认为必须具备以下特点: 1. 插件的动 阅读全文
posted @ 2017-08-12 16:40 6671 阅读(2922) 评论(0) 推荐(0)
摘要:bolg 阅读全文
posted @ 2017-08-10 19:07 6671 阅读(81) 评论(0) 推荐(0)
摘要:1 阅读全文
posted @ 2017-08-10 18:38 6671 阅读(135) 评论(0) 推荐(0)
摘要:1 getwxuserConf($mid); 9 // var_dump($config['appid']);die; 10 //file_put_contents('./upload/log/tet.txt', $config); 11 $this->appid = $config['appid']; 12 $thi... 阅读全文
posted @ 2017-08-10 18:29 6671 阅读(405) 评论(0) 推荐(0)
摘要:1 $type = "SMS_53840088"; 2 $signName = '注册验证'; 3 $param = json_encode(array('code'=>$data['rand_num'],'product'=>$data['projectName'])); 4 $return = $messages->stort_message(... 阅读全文
posted @ 2017-08-10 18:26 6671 阅读(264) 评论(0) 推荐(0)
摘要:初始化方法类似下拉刷新,通过mui.init方法中pullRefresh参数配置上拉加载各项参数,如下: 特别这样div 我调试时就是这里有坑 要引入css js 文件 阅读全文
posted @ 2017-08-09 14:59 6671 阅读(426) 评论(0) 推荐(0)
摘要:然后我们只需要写一个调用的代码就好 这样看上去是不是很简单? 阅读全文
posted @ 2017-08-05 16:05 6671 阅读(156) 评论(0) 推荐(0)
摘要:php代码格式工具 js代码格式工具 阅读全文
posted @ 2017-08-05 15:49 6671 阅读(132) 评论(0) 推荐(0)
摘要:Chartist.Js Chartist 是一个响应式图表库,支持桌面和移动平台使用,支持CSS动画,但兼容性需要在IE9以上,其它流行的浏览器一般都兼容了。 版权: 免费使用 在线演示&下载 ECharts ECharts,缩写来自Enterprise Charts,商业级数据图表,一个纯Java 阅读全文
posted @ 2017-08-05 15:22 6671 阅读(886) 评论(0) 推荐(0)
摘要:$lng,'lat'=>$lat); } function Convert_GCJ02_To_BD09($lat,$lng){ $x_pi = 3.14159265358979324 * 3000.0 / 180.0; $x = $lng; $y = $lat; $z =sqrt($... 阅读全文
posted @ 2017-08-03 17:55 6671 阅读(448) 评论(0) 推荐(0)
摘要:$url = $obj->paying($fee,$apiSecret,$trade_no); 阅读全文
posted @ 2017-08-03 17:44 6671 阅读(200) 评论(0) 推荐(0)
摘要:selectBySql($sql); $mid=$data[0]['mid']; $openid=$data[0]['openid']; $cash=$data[0]['cash']*100; // echo $mid,$openid,$cash; // die; $... 阅读全文
posted @ 2017-08-03 17:41 6671 阅读(288) 评论(0) 推荐(0)
摘要:1 <?php 2 3 class wxcard 4 5 { 6 7 private $wxinfo = ''; 8 9 //public $error = array(); 10 11 12 13 function __construct($wxinfo) { 14 15 $this->wxinf 阅读全文
posted @ 2017-08-03 17:40 6671 阅读(1228) 评论(0) 推荐(0)