This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var test = require('tape'); | |
var request = require('supertest'); | |
var server = require('../../server'); | |
test('barcode route', function(t) { | |
request(server) | |
.get('/api/1/code') | |
.expect(200) | |
.expect('Content-Type', /json/) | |
.expect({"code":{"code":"1M4A67AE3H94RS6GG74M"}}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aList = $('.users-list>li>div.headpic>a'); | |
aList.toArray().map(node => { | |
fetch(`https://xueqiu.com/cubes/list.json?user_id=${node.getAttribute("data-id")}&_=${Date.now()}`, { | |
credentials: 'include' | |
}) | |
.then(res=>{ | |
return res.json() | |
}) | |
.then(res=>{ | |
let b = res.list.map(cube=>{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<类型>: <主题> (最多50个字) | |
# 解释为什么要做这些改动 | |
# |<---- 请限制每行最多72个字 ---->| | |
# --- 提交 结束 --- | |
# 类型值包含 | |
# feat (新特性) | |
# fix (bug修复) | |
# docs (文档改动) |
OlderNewer