php通过cookie操控验证码显示隐藏

php通过cookie操控验证码显示隐藏

    public function index(){ // 是否显示验证码,默认不显示 $this-ProisShowAuthCode=2; if(cookie(loginNum)=3){ $this-ProisShowAuthCode=1; } $this-assign([isShowAuthCode=$this-ProisShowAuthCode]); return view(); }public function dolog(){ $captcha=input(vdcode); $isShowAuthCodeValue=input(authcode); // 判断是否使用验证 if($isShowAuthCodeValue==1){ if(!captcha_check($captcha)){ //验证

    阅读全文>>

2023-05-27 作者:冰貂主人 栏目:PHP 浏览量:

ALTER TABLE causes auto_increment resequencing, resulting i

 ALTER TABLE causes auto_increment resequencing, resulting i

    ALTER TABLE causes auto_increment resequencing, resulting in duplicate entry 12 for key PRIMARY 这句话什么意义呢? 更改表引发递增重排序,造成了键输入了多次12。 也就是说要修改成递增的字段中,输入了重复的值。

    阅读全文>>

2023-05-27 作者:冰貂主人 栏目:数据库 浏览量:

tp5 composer wechatpay微信支付v3

tp5 composer wechatpay微信支付v3

    问题: 正常使用中的tp5程序需要安装微信支付v3。 tp5使用cmd面板composer require wechatpay/wechatpay会报错。 比如下面 1,The topthink/think-installer plugin was skipped because it requires a Plugin API version (^1.0) that

    阅读全文>>

2023-05-25 作者:冰貂主人 栏目:PHP 浏览量:

v3 退款400 Bad Request

v3 退款400 Bad Request

    报错: Client error: `POST https://api.mch.weixin.qq.com/v3/refund/domestic/refunds` resulted in a `400 Bad Request` response 解决: 请求参数仔细查查,看看值对不对。打印看看 json = [ out_trade_no = $out_trade_no, out_refund_n

    阅读全文>>

2023-05-24 作者:冰貂主人 栏目:其他 浏览量:

输入源“/body/amount/total”映射到数值 (truncated...)

输入源“/body/amount/total”映射到数值 (truncated...)

    报错: 1,Client error: `POST https://api.mch.weixin.qq.com/v3/refund/domestic/refunds` resulted in a `400 Bad Request` response: {code:PARAM_ERROR,detail:{location:body,value:0},message:输入源 /body/amount/total 映射到数值 (truncated...) 2, 微信支付请求失败,响应码 = 400,返回结果 = {code:PARAM_ERROR,detail:{location:body,value:{currency:CNY,refund:40,total:40}},message

    阅读全文>>

2023-05-24 作者:冰貂主人 栏目:其他 浏览量:

'Cannot found the serial(`7961E289E4FD04`)\'s configuration,

'Cannot found the serial(`7961E289E4FD04`)\'s configuration,

    // 从本地文件中加载「微信支付平台证书」 ,用来验证微信支付应答的签名。使用composer 下载的平台证书路径添加至此 $filecert=file://.EXTEND_PATH .wechatpay_796C4533804444683DE4FD04.pem; $platformCertificateFilePath = str_replace(\\,/,$filecert); $platformPublicKeyInstance = Rsa::from($platformCertificateFilePath, Rsa::KEY_TYPE_PUBLIC);

    阅读全文>>

2023-05-18 作者:冰貂主人 栏目:PHP 浏览量:

curl_setopt_array(): cannot represent a stream of type Outpu

curl_setopt_array(): cannot represent a stream of type Outpu

    在guzzle(版本6.3)设置了option中 debug为true 的时候,linux下没有问题,windows下报如下错误: curl_setopt_array(): cannot represent a stream of type Output as a STDIO FILE* // 发送请求 $resp = $instance-chain(v3/certifica

    阅读全文>>

2023-05-18 作者:冰貂主人 栏目:PHP 浏览量:

composer下载微信支付平台证书

composer下载微信支付平台证书

    第1:验证是否正确,如下命令:composer exec -l ,如下图: 显示有可执行文件 CertificateDownloader.php 表示此文件可执行。 第三:运行命令得到一些参数说明,命令:php vendor/bin/CertificateDownloader.php

    阅读全文>>

2023-05-18 作者:冰貂主人 栏目:PHP 浏览量:

Cannot load privateKey from(string), please take care about

Cannot load privateKey from(string), please take care about

    Cannot load privateKey from(string), please take care about the \$thing inpu

    阅读全文>>

2023-05-17 作者:冰貂主人 栏目:PHP 浏览量:

php 时间函数时间格式转换

php 时间函数时间格式转换

    rfc3339标准时间转时间格式 function rfc3339_to_date($rfc3339_str) { $date_str = substr($rfc3339_str, 0, 19); $date_str = str_replace(T, , $date_str); return date(Y-m-d H:i:s, strtotime($date_str)); } $rfc3339_str = 2020-05-20T10:00:00+08:00; e

    阅读全文>>

2023-05-17 作者:冰貂主人 栏目:PHP 浏览量:

微信支付cURL error 60: SSL certificate problem: unable to get lo

微信支付cURL error 60: SSL certificate problem: unable to get lo

2023-05-17 作者:冰貂主人 栏目:PHP 浏览量:

git svn gitee github删除某个版本,删除提交

git svn gitee github删除某个版本,删除提交

    比如12345版本, 需要删除4版本 不管是git 还是svn都有还原功能。 1,先在本地还原到3版本 2,然后提交即可。 提交的时候看看action是不是deleted。deleted的文件都是4版本的。

    阅读全文>>

2023-05-15 作者:冰貂主人 栏目:其他 浏览量: