- 手机: (
外地-武汉号
) - Email: caizhenghai@gmail.com/caizhenghai@qq.com
- QQ/微信号:314494687/ipzone
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
*微信公众平台模拟登录 | |
* | |
*实现了公众平台上的操作<br>包括 实时消息获取 快速回复 用户管理 群发消息 获取用户基本信息 | |
*@copyright Copyright info | |
*@author dml | |
*@version version | |
*@package defalut | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "owner", | |
"type": "address" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/**k | |
* @inheritdoc | |
*/ | |
public function rules() | |
{ | |
return [ | |
[['name', 'subtitle'], 'string', 'max' => 100], | |
['productInfo', 'vaildateProductInfo'], // 自定义验证 | |
['skus', 'vaildateSkus'], // 自定义验证 | |
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function actionSearch() | |
{ | |
$keyword = Yii::$app->request->get('keyword'); | |
if (empty($keyword)) $this->goHome(); | |
require_once(Yii::getAlias('@common/helpers') . '/sphinxapi.php'); | |
$cl = new \SphinxClient (); | |
$cl->SetServer('127.0.0.1', 9312); | |
//以下设置用于返回数组形式的结果 | |
$cl->SetArrayResult(true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @link http://ideone.com/gAsKlI | |
*/ | |
$items = array( | |
array('id' => 1, 'pid' => 0, 'name' => '一级11'), | |
array('id' => 11, 'pid' => 0, 'name' => 'www.111cn.net 一级12'), | |
array('id' => 2, 'pid' => 1, 'name' => '二级21'), | |
array('id' => 10, 'pid' => 11, 'name' => '二级22'), | |
array('id' => 3, 'pid' => 1, 'name' => '二级23'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* author : forecho <caizhenghai@gmail.com> | |
* createTime : 2015/12/29 15:33 | |
* description: | |
*/ | |
namespace common\components; | |
use yii\base\InvalidParamException; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* jshint esversion: 6 */ | |
// ==UserScript== | |
// @name WSJ and Barrons Paywall Hack | |
// @include https://*.wsj.com/* | |
// @include https://*.barrons.com/* | |
// @run-at document-end | |
// @grant none | |
// @version 2 | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PHP Composer | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* author : forecho <caizhenghai@gmail.com> | |
* createTime : 2016/3/30 16:47 | |
* description: | |
*/ | |
namespace common\helpers; | |
class StringHelper |
NewerOlder