摘要: delete FROM `customer` WHERE `name` in (SELECT a.name from( select name FROM `customer` GROUP BY `name` HAVING COUNT(1) >1)a ) and id not in (SELECT b 阅读全文
posted @ 2021-08-26 15:41 可爱香草 阅读(11) 评论(0) 推荐(0)
摘要: //安装 npm i vue-codemirror -S //使用 <codemirror ref="chartOption" :value="mirrorCode"//响应式使用v-model :options="cmOptions" @change="mirrorCodeChange"> </c 阅读全文
posted @ 2021-06-01 11:01 可爱香草 阅读(110) 评论(0) 推荐(0)
摘要: public static function ListToTree($list, $primaryKey='id', $parentKey = 'up_id', $childStr = 'children', $root = 0) { $tree = array(); if (is_array($l 阅读全文
posted @ 2021-05-21 15:48 可爱香草 阅读(9) 评论(0) 推荐(0)
摘要: 有时遇到本地文件明明没修改,pull提示文件修改的错误 error: Your local changes to the following files would be overwritten by merge: Please commit your changes or stash them b 阅读全文
posted @ 2021-05-06 16:42 可爱香草 阅读(24) 评论(0) 推荐(0)
摘要: 余数一定小于除数,用10作为除数 可以把user表拆分成user0.......user9 根据id 可以确定用户存在哪个表中 查询所有数据 for ($i = 0; $i < 10; $i++) { $queries->push(DB::table('user_operator_record' . 阅读全文
posted @ 2021-04-26 14:47 可爱香草 阅读(55) 评论(0) 推荐(0)
摘要: //控制加载参数 loading: false,//加载 finished: false,//加载结束,没有更多了 refreshing: false,//刷新 list: [],//数据 //加载数据 loadPost() { if (this.refreshing) { this.list = 阅读全文
posted @ 2021-04-15 15:17 可爱香草 阅读(10) 评论(0) 推荐(0)
摘要: Schema::table('group_code', function (Blueprint $table) { DB::statement("ALTER TABLE group_code CHANGE COLUMN expire_at expire_at timestamp (0) commen 阅读全文
posted @ 2021-04-13 14:42 可爱香草 阅读(8) 评论(0) 推荐(0)
摘要: 最近遇到js拷贝问题 深拷贝 JSON.parse(JSON.stringify(obj)) 注意不能存在为函数的键值 浅拷贝 {...obj} 阅读全文
posted @ 2021-04-12 11:00 可爱香草 阅读(11) 评论(0) 推荐(0)
摘要: 使用laravel 拓展包 tymon/jwt-auth jwt.auth 作为中间件使用,在一些场景下会触发不识别token报401,实际token是可用的. 请改用auth:api 阅读全文
posted @ 2021-03-09 15:14 可爱香草 阅读(21) 评论(0) 推荐(0)
摘要: overtrue/laravel-wechat:^5.1 -> Laravel/Lumen >= 5.1 可以在文档看到laravel5 推荐用5.1 ,可实际5.1的包在laravel5.4的环境下各种报错,请使用4.0版本即可 阅读全文
posted @ 2021-03-09 15:11 可爱香草 阅读(49) 评论(0) 推荐(0)