((list) => {
let max = {
total: 0,
first: 0,
last: 0,
};
let tmp = {
total: 0,
first: 0,
last: 0,
};
let op = 0;//是否连续,0不连续,1递增连续,-1递减连续
list.forEach((current, i) => {
if (i === 0)
目录
* 1 Result类
* 1.1 结构
* 1.2 code的定义
* 2 性别
* 3 版本号
* 3.1 字符串格式
* 3.2 数字格式
Result类
结构
{
"code": 0,
"msg": "ok",
"data&
Mac中有个AppleScript,通过它可以实现弹窗或系统通知
弹窗
osascript -e 'display alert "告警!!" as critical'
* osascript -e 是执行一段apple script
* display alert是弹窗
* as critcal是用来控制图标,可以as三个值(informational,warning,critical,默认是informational)
发通知
osascript -e 'display notification
$a = 1;
$b = 2;
list($a, $b) = array($b, $a);
[$a, $b] = [$b, $a];
目录
* 1 前言
* 2 基础功能:建券发券用券
* 2.1 基础信息:coupon表
* 2.1.1 过期类型与过期时间
* 2.1.2 优惠类型与优惠参数
* 2.1.3 总数量与发放数量
* 2.1.4 SN的作用:安全无小事
* 2.2 用户领到的券:user_coupon表
* 2.