打你一下

2020年7月9日

sql查询锁

摘要: 查询锁表select request_session_id spid,OBJECT_NAME(resource_associated_entity_id) tableName from sys.dm_tran_locks where resource_type='OBJECT'解锁--declare 阅读全文

posted @ 2020-07-09 14:18 打你一下 阅读(977) 评论(0) 推荐(0) 编辑

sql删除重复记录

摘要: delete from Rebate_Logs where id not in (select max(id) from Rebate_Logs group by usercode_sk,ordercode) 阅读全文

posted @ 2020-07-09 14:16 打你一下 阅读(174) 评论(0) 推荐(0) 编辑

2020年6月27日

apache配置反向代理

摘要: Listen 443 <VirtualHost *:443> #extra/httpd-ssl.confDocumentRoot "D:\web\student"ServerName student.weihom.netSSLEngine on # Proxy ConfigSSLProxyEngin 阅读全文

posted @ 2020-06-27 17:07 打你一下 阅读(747) 评论(0) 推荐(0) 编辑

phptp5递归查询

摘要: //获取拿货上级 public function getTakeGoodsMember($member_id) { $allMember = Db::query("SELECT id,superior_userid,user_name,level_id,take_goods_userid FROM 阅读全文

posted @ 2020-06-27 17:00 打你一下 阅读(497) 评论(0) 推荐(0) 编辑

php百万数据导出csv

摘要: <?phpset_time_limit(0);ini_set('memory_limit', '128M'); $fileName = date('YmdHis', time());header('Content-Encoding: UTF-8');header("Content-type:appl 阅读全文

posted @ 2020-06-27 16:57 打你一下 阅读(285) 评论(0) 推荐(0) 编辑

php极光推送

摘要: <?php namespace addons\takeoutshop\common\model; use GatewayWorker\Lib\Gateway;use think\Db;use addons\takeoutshop\common\model\TakeoutshopToolAllStat 阅读全文

posted @ 2020-06-27 16:41 打你一下 阅读(268) 评论(0) 推荐(0) 编辑

php公众号相关类

摘要: <?php namespace lib; use think\Cache; class Weapp { const MSGTYPE_TEXT = 'text'; const MSGTYPE_IMAGE = 'image'; const MSGTYPE_LOCATION = 'location'; c 阅读全文

posted @ 2020-06-27 16:20 打你一下 阅读(286) 评论(0) 推荐(0) 编辑

php常用函数

摘要: <?php // + // 应用公共文件/** * 获取随机数的长度 * @param type $length 随机数长度 * @return string */use think\Db;use think\Cookie;use lib\Rsa;use think\File;use think\R 阅读全文

posted @ 2020-06-27 16:12 打你一下 阅读(327) 评论(0) 推荐(0) 编辑

php判读是请求是http还是https

摘要: function GetHttp() { if (isset($_SERVER['HTTPS']) && ('1' == $_SERVER['HTTPS'] || 'on' == strtolower($_SERVER['HTTPS']))) { return "https://"; } elsei 阅读全文

posted @ 2020-06-27 16:11 打你一下 阅读(888) 评论(0) 推荐(0) 编辑

php微信支付回调验证签名

摘要: function verifySign($params,$apikey="PvXTgIhJOkRZnfOs9JQ7SANnV5KfsHTJ") { ksort($params); $string=""; foreach ($params as $k => $v) { if($k != "sign" 阅读全文

posted @ 2020-06-27 16:10 打你一下 阅读(1482) 评论(0) 推荐(0) 编辑

导航