Fork me on Baidu
摘要: define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) { var Controller = { index: function () { // 阅读全文
posted @ 2025-08-08 11:00 consideration 阅读(45) 评论(0) 推荐(0)
摘要: 1,很简单就可以解决 使用php自带的函数 html_entity_decode 阅读全文
posted @ 2025-03-21 07:39 consideration 阅读(12) 评论(0) 推荐(0)
摘要: public function uploadImage() { // 获取 Base64 编码的文件数据 $base64Data = $this->request->post('file'); if (empty($base64Data)) { return json([ 'code' => 0, 阅读全文
posted @ 2025-03-10 16:51 consideration 阅读(14) 评论(0) 推荐(0)
摘要: <?php namespace app\admin\model; use think\Model; use think\Db; class CategoryServe extends Model { // 表名 protected $name = 'category_serve'; // 自动写入时 阅读全文
posted @ 2025-03-01 17:24 consideration 阅读(10) 评论(0) 推荐(0)
摘要: $code = $this->request->post('code'); $appid = '你的appid'; $appsecret = '你的secret'; $weixin = getJson('https://api.weixin.qq.com/sns/jscode2session?app 阅读全文
posted @ 2025-02-27 14:43 consideration 阅读(17) 评论(0) 推荐(0)
摘要: 我是使用apache 碰到这个问题的 就是apache 中的省略入口文件没有配置好 <IfModule mod_rewrite.c>Options +FollowSymlinks -MultiviewsRewriteEngine onRewriteCond %{REQUEST_FILENAME} ! 阅读全文
posted @ 2025-02-24 22:35 consideration 阅读(14) 评论(0) 推荐(0)
摘要: 1, 使用不去验证数据$stream_opts = [ "ssl" => [ "verify_peer" => false, "verify_peer_name" => false, ] ]; $user_info = json_decode(file_get_contents($user_info 阅读全文
posted @ 2024-02-02 13:58 consideration 阅读(29) 评论(0) 推荐(0)
摘要: /^([a-zA-Z]+=[a-zA-Z0-9]+,)*[a-zA-Z]+=[a-zA-Z0-9]+$/.test('a=a,af=sasfd,b=asdfJH,asa=fdc,c=sdf') 阅读全文
posted @ 2024-02-01 22:55 consideration 阅读(67) 评论(0) 推荐(0)
摘要: SELECT S1.Sname,S1.sex FROM student AS S1, student AS S2 WHERE S1.age = S2.age AND S1.Sname <> S2.Sname GROUP BY S1.Sname ORDER BY S1.age 学生表中 求出 年龄相同 阅读全文
posted @ 2024-02-01 17:52 consideration 阅读(86) 评论(0) 推荐(0)
摘要: 模型层方面 设置表名 主见名称 字段 protected $name = 'recruit'; protected $pk = 'recruit_id'; protected $field = []; // 查找详情数据 public static function getUserOrderDeta 阅读全文
posted @ 2024-02-01 10:41 consideration 阅读(35) 评论(0) 推荐(0)