摘要: 最近看到一篇文章是说当前大部分web应用在保存用户密码时都是用的hash加密。比如单纯的使用md5对用户密码进行加密,然后就存在数据库里,这样做对于不了解计算机的人来说确实可以,但是现在网络越来越发达,网上已经出现了不少专门对md5解密(加密)的网站,试的用户的密码信息更容易被破解和攻击。 文档中提 阅读全文
posted @ 2020-09-28 15:17 流浪2024 阅读(1329) 评论(0) 推荐(0)
摘要: 方案一:主表+行为关联表(推荐) 1. 用户表 (users) sql CREATE TABLE users ( id INT PRIMARY KEY AUTO_INCREMENT, username VARCHAR(50) NOT NULL, email VARCHAR(100), created 阅读全文
posted @ 2026-02-04 17:02 流浪2024 阅读(2) 评论(0) 推荐(0)
摘要: <?php class DeepSeekClient { private $apiKey; private $apiUrl = 'https://api.deepseek.com/chat/completions'; private $model = 'deepseek-chat'; public 阅读全文
posted @ 2026-01-24 15:08 流浪2024 阅读(11) 评论(0) 推荐(0)
摘要: mysql 批量调整数据表引擎: <?php //连接数据库 $host='localhost'; $user='root'; //数据库用户名 $passwd='root'; //密码 $db='hunlian'; //数据库名称 $link= mysqli_connect($host, $use 阅读全文
posted @ 2026-01-07 10:54 流浪2024 阅读(4) 评论(0) 推荐(0)
摘要: thinkphp6 使用JWT生成token及验证token 引入JWT组件: composer require firebase/php-jwt common.php 增加以下代码后,控制器调用 //生成验签 function signToken($data) :string { $key='ab 阅读全文
posted @ 2025-12-25 14:31 流浪2024 阅读(10) 评论(0) 推荐(0)
摘要: 小程序: wx.login({ success: function(t) { e.ajax({ url: "get_openid.php", data: { code: t.code }, success: function(e) { wx.setStorageSync("COOK_U", { op 阅读全文
posted @ 2025-12-20 14:08 流浪2024 阅读(11) 评论(0) 推荐(0)
摘要: /* 公众号 */ function wx_get_access_token() { global $_ZEAI; $data = json_decode(@file_get_contents(ZEAI . "cache/wxdata/access_token.json")); if ($data- 阅读全文
posted @ 2025-12-10 09:28 流浪2024 阅读(23) 评论(0) 推荐(0)
摘要: var pages = getCurrentPages(); console.log(pages); var curPages = pages[pages.length - 1].route; console.log(curPages); //获取上级页面path var prevPage = pa 阅读全文
posted @ 2025-12-06 15:46 流浪2024 阅读(23) 评论(0) 推荐(0)
摘要: <?php //获取毫秒 function msectime() { list($msec, $sec) = explode(' ', microtime()); $msectime = (float)sprintf('%.0f', (floatval($msec) + floatval($sec) 阅读全文
posted @ 2025-11-26 15:40 流浪2024 阅读(12) 评论(0) 推荐(0)
摘要: 微信商家转账接口实例: /*** * 提现打款 */ class tixian{ public $mch_appid = APPID_; public function zhuanzhang($open_id,$order_no,$pay_money) { $post_data = [ "appid 阅读全文
posted @ 2025-11-22 09:22 流浪2024 阅读(19) 评论(0) 推荐(0)
摘要: <html> <head> <meta charset="UTF-8"> <title>用户关系图</title> <style> </style> <script type="text/javascript" src="https://fastly.jsdelivr.net/npm/echarts 阅读全文
posted @ 2025-11-11 18:00 流浪2024 阅读(62) 评论(0) 推荐(0)