Skip to content

Commit

Permalink
fix: fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
axetroy committed Nov 24, 2017
1 parent 984f78b commit 8986e81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion app/providers/亚马逊.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ module.exports = class extends Provider {
constructor() {
super();
this.url = `https://www.amazon.cn/ap/register?_encoding=UTF8&openid.assoc_handle=cnflex&openid.claimed_id=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select&openid.identity=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select&openid.mode=checkid_setup&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.ns.pape=http%3A%2F%2Fspecs.openid.net%2Fextensions%2Fpape%2F1.0&openid.pape.max_auth_age=0&openid.return_to=https%3A%2F%2Fwww.amazon.cn%2Fgp%2Fyourstore%2Fhome%3Fie%3DUTF8%26ref_%3Dnav_newcust`;
this.alone = true;
}
async resolve(ctx) {
const options = ctx.options;
Expand Down
5 changes: 3 additions & 2 deletions app/providers/千米电商云.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module.exports = class extends Provider {
constructor() {
super();
this.url = `https://www.1000.com/reg?us=3W-head`;
this.alone = true;
}
async resolve(ctx) {
const options = ctx.options;
Expand All @@ -14,9 +15,9 @@ module.exports = class extends Provider {

await utils.sleep(500);

await page.type('#send_code', options.phone, { delay: 50 });
await page.click('#send_code');

// 检验是否发送成功
await page.waitForSelector('#send_tip.disable', { timeout: 1000 * 3 });
await page.waitForSelector('#send_tip.disabled', { timeout: 1000 * 3 });
}
};

0 comments on commit 8986e81

Please sign in to comment.