lv1= lv2= type=
temp
psych todo
<iframe>
h2
test mod1 blue, very very very very very very very very very very very very
test mod2, long
test xss: <iframe>, sentence sentence sentence sentence sentence sentence sentence sentence sentence
mynote 前后分离 web_mynote web_mynote web_mynote web_mynote web_mynote web_mynote web_mynote web_mynote web_mynote web_mynote web_mynote web_mynote web_mynote
h2 test
h2 "test"
h2 test
h2 <>&
h2 test
h2 test
h3 test
h3 test
h3 test
h3 test
h3 test
h3 test
h3 test
h3 test
h3 test
h3 test
h3 test
h3 test
h3 test
h3 test
h3 test
h3 test
h3 test
h3 test
h3 test
h3 test
h3 test
h3 test
h3 test
h3 test
test mod2, this is very very very very very very very very log sentence
h3 test
h3 test
h3 test
h3 test
h3 test
h3 test
h3 test
h3 test
h3 test
h3 test
h3 test
h3 test
Warning: session_start(): open(d:/php/tmp\sess_u0r102v0o8avbh6dusd5f8mnd2, O_RDWR) failed: No such file or directory (2) in D:\web_mynote\basic\web\index.php on line 28
E:\uninote\mynote\basic\vendor\yiisoft\yii2\base\Application.php
??
public function __construct($config = [])
{
CT("yii/base/Application.__construct(config = []){}");
Yii::$app = $this;
phpstorm live template
<hr><p>$SELECTION$</p>
https://stackoverflow.com/questions/9919385/code-snippets-in-phpstorm
file:///X:/vue/docs/vue-router/blog.html#/user/1/posts/3 update 监听
compatibility table
https://kangax.github.io/compat-table/es5/
https://kangax.github.io/compat-table/es6/
his.ecfg 造成fh加载缓慢
IP反查域名
register_shutdown_function('shutdown_hook');
不能多次调用?
checks
cd /home/www/mynote
git fetch
git checkout no-captcha
git merge origin/master
if [ "$?" != "0" ]; then
git reset --hard
echo "merge error"
# exit 1;
else
echo "merge ok"
fi
cd /home/www/mynote/basic/config
php checks.php > checks.txt
php -S 0.0.0.0:8000
api 测试
api接口
es
es 搜索 api
check: seaslog 安装成功
"curl 'http://192.168.0.23:85/api/user/telregister' --data 'tel=18982283448&code=1&password=123123' --compressed --insecure"
curl "http://192.168.0.23:85/api/user/telregister" --data "tel=18982283448&code=1&password=123123" --compressed --insecure
bash -c "curl 'http://192.168.0.23:85/api/user/telregister' --data 'tel=18982283448&code=1&password=123123' --compressed --insecure"
tel=18982283448&code=1&password=123123
这个不需要
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
E:\uninote\mynote-env-init-v2\utils
E:\uninote\mynote-env-init-v2\utils\api-test.php
区分全量 check & 增量 check
APP本机号码一键登录如何实现?
https://www.zhihu.com/question/316829163/answer/648083145
https://www.aliyun.com/product/dypns?spm=5176.224200.search.1.98006ed60VN9Dk
https://dun.163.com/product/phone-verification?from=baiduP2_phonecheck_C190529P2
https://www.getui.com/verification?f=2&p=5&k=3180
https://www.geetest.com/Gateway?utm_campaign=sem%E6%97%A0%E6%84%9F%E6%9C%AC%E6%9C%BA%E8%AE%A4%E8%AF%81&bd_vid=7906219461406198835
Nullish coalescing operator (??)
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing_operator
任务1:1.rollup的基本配置
http://www.javascriptpeixun.cn/course/2899/task/177477/show
npm init -y
npm install rollup @babel/core @babel/preset-env rollup-plugin-babel -D
vscode:
! >> ....
任务2:2.响应式处理
http://www.javascriptpeixun.cn/course/2899/task/177478/show
other
git revert xx --no-edit
java书籍 已购
http://fangjian0423.github.io/2017/04/30/springboot-startup-analysis/
uniapp study
http://localhost:8081/pages/API/intersection-observer/intersection-observer
有bug,不稳定?
https://uniapp.dcloud.net.cn/component/uniui/uni-data-picker.html#
uni.addInterceptor
https://uniapp.dcloud.net.cn/api/interceptor.html
other
nickname charset 没有同步到?
120rpx upx 注意不要空格,否则处理不了;不要 phpstorm 格式化
source map 有时失效,用 debugger?
要用 dispatch.vue 这种方式,才能 source map 过去?不要都是 index.vue
新增数据的最佳实践原则:使用create方法新增数据,使用saveAll批量新增数据。
* 1 代替parseInt
font-family: PingFang-SC-Medium;
中间表 alias: pivot
field可以选择中间表的字段,但一般没啥意义;
where也可以进行中间表条件判断:
$db = (new \app\model\api\Banner)->alias("b");
$db->with(['models' => function (Query $q) {
$q->alias("bm")
->field(['bm.id', 'pid', 'bm.title', 'pivot.id as ppid'])
// ->where('bm.status', '=', Constant::STATUS_OK);
->where('pivot.status', '=', 1);
}]);
$r = $db->select();
belongsToMany
$params['page_size'] ?? 10 ?: 10
\think\db\BaseQuery::insert
最终使用 PDO: PDO::lastInsertId <http://php.net/manual/en/pdo.lastinsertid.php>
return $this->append('id', 'require');
url 判断:
value.match('^https?://')
padding:
3073
滚动条变绿色了,就说明找到了对应的元素
添加 overflow: hidden, 就能隐藏此滚动条
Math.abs(element.scrollHeight - element.clientHeight - element.scrollTop) < 1;
clientHeight 包括 padding
document.body.offsetParent is null
document.body.offsetTop 是相对于 viewport,其他是两个border的最小距离
杂项
Modal。showPopup 不行?
php静态成员变量和静态变量初始化详解
https://www.php.cn/faq/371856.html
Visual Viewport API
https://developer.mozilla.org/en-US/docs/Web/API/Visual_Viewport_API
Window: innerWidth property
https://developer.mozilla.org/en-US/docs/Web/API/Window/innerWidth
改变后刷新还在?
overflow: hidden 要 html/body 同时设置才可以?
powder 全局参数
bag type
conch_first 各种金额
跟随 gene.noDef
->leftJoin('`dajx-api`.user_conch uc', 'o.id = uc.order_id and (uc.type = ' .
UserConchModel::TYPE_USE_CHANCEL . ' OR uc.type = ' . UserConchModel::TYPE_REFUND . ')')
partial_refund_amount 不能大于 amount ,check
'instant-on-sale'|'default'
多用下划线,前者搜aa-bb全字匹配也会被搜出来,但aa_bb不会
aa-bb-cc aa_bb_cc
'scene': 'default', 都用单引号形式,便于查找
powder todo
---- 参考
参考:区分手动、自动时的错误处理
可以获取到当前的模式
无效支付退款没有恢复贝壳
--
超级福袋创建,参数不同,如何控制?超级福袋的测试数据单独维护
info = await this.selectApi.request(this.gene, null, validateReturns, false,
this.checkRequestOption.includes('chkNoDef'));
request 直接使用,便于复用 生成参数 和 user args
sync: 如果apply失败,需要revert,避免部分apply
7f883cedc2dfc0254a4427ed40ccd8fd87fea39a
依赖递归:create > cancel >create
powder 改用 bcomp 版本,可以等待结果
==powder
设置一次性常量参数?
截止 pos & round
无效支付退款?
check:取消-支付冲突?
test 放 gene 下还是 api 下? both 1
todo: gene test & api test doc
api request 异常处理?重构,设计
validate's this 绑定为 cur gene,但不能用箭头函数 1
==done
client。order.cancel.'once-more'?
scratch-once-more remove dependent
make时skip要警告一下?
scratch/plus 前缀明确一下
order_common.js move to bb/
统一的import?
deep clone,后面可能还要通过 lastResult 引用这个结果
- merge args
- gene func default args
- conch-once-more 退款验证
- enoughConch: check
once-more 未使用退款
验证后自动退款没有
GENE_ONLY 等研究:
src\powder\user\
cd /server/prj-utils/prj_config && bash dumpconfig.sh $DEP_BRANCH root
server_name xxx.uninote.com.cn;
清理空间
rm -rf /home/wwwlogs
rm -rf /home/www/blindbox-api/runtime
rm -rf /home/www/blindbox-admin-api/runtime
mysql log
/var/cache/yum
/var/log/redis.log
var/cache/yum
public function setStatusCode($value, $text = null)
$data['error'] 有用? 老的 error message
未知错误代码
不支持GET请求
test/response response 结构测试
test/response 优化
InvalidRouteException 404
feat 96: api异常处理,保证日志记录
return Response::success(["a" => "b", "c" => [1, 2, 3]]);
// GET 请求白名单
$classes = array_merge(
[$class],
class_parents($class, true),
class_implements($class, true)
);
/* @var $redis \yii\redis\Connection */
$redis = \Yii::$app->redis;
直接返回single value:
fetch(PDO::FETCH_COLUMN)
这个可以指定 column index:
$db->query("SELECT 1033,1044 AS Code")->fetchColumn(1);
getTableSchema
在这个例子中,使用了 /u 修饰符启用 UTF-8 模式
preg_match('/^(.*?)(?i:\s+as\s+|\s+)([\w\-_\.]+)$/', $columnDefinition, $matches) &&
if (preg_match('/^(.*?)(?:\s+as)\s+([^ ]+)$/', $table, $matches)) { // with alias
http://192.168.0.21:83
http://d.uninote.com.cn/php
mime_content_type
http://v.uninote.com.cn/
上传修复
fe:
config.js 加入 radio group的支持?
fh:
outline 空格替换为-?
fh/res
send selection log 分离
window.addEventListener("load" 改为DOMContentLoaded?
eruda 集成
横竖记住
手势导航,扩展到 docviewer?资源注入
排序提取到一起
prev/next 性能测试 fh,30ms
点击parent:用户还未登录 - 端口问题,注意缓存
list:支持文件(夹)搜索;递归深度
git代码整理
send selection 文档
菜单界面优化
inGesture:保证在顶部向下滑动时不会下一页
git fetch; git reset --hard origin/master; while((1)); do git pull; sleep 0.5; done
fix: normalize_path 绝对路径返回为相对路径问题
〖normalize path test case〗
自带reset?
<button type="button" onclick="reset()" class="no-break">重置</button>
间距调整
手势优化
test mod last, very very very very very very very very very very very very