Skip to content

Commit bef255f

Browse files
peterpeter
authored andcommitted
v2.0.1
1 parent 8eec545 commit bef255f

File tree

11 files changed

+351
-145
lines changed

11 files changed

+351
-145
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ node_modules
1717
yarn.lock
1818
*.js
1919
package-lock.json
20+
.npmignore

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
[![Build Status](https://travis-ci.org/QTGate/QTGate-Desktop-Client.svg?branch=master)](https://travis-ci.org/QTGate/QTGate-Desktop-Client)
33
[![Gitter](https://img.shields.io/badge/chat-on%20gitter-blue.svg)](https://gitter.im/QTGate/Lobby)
44
[![Known Vulnerabilities](https://snyk.io/test/github/qtgate/qtgate-desktop-client/badge.svg)](https://snyk.io/test/github/qtgate/qtgate-desktop-client)
5+
[![TeleBot Group](https://img.shields.io/badge/telebot-community%20group-blue.svg)](https://t.me/joinchat/IpX64hGK_95XDTXit42vOg)
56

67
## Download ダウンロード 下載
78

@@ -93,7 +94,7 @@
9394

9495
- **Co for Google** - 免費免翻牆匿名Google檢索客戶端
9596

96-
## [Help video ヘルプビデオ 幫助視頻](https://github.com/QTGate/QTGate-Desktop-Client/wiki)
97+
## [Help video. ヘルプビデオ. 幫助視頻](https://github.com/QTGate/QTGate-Desktop-Client/wiki)
9798
[![How to anonymous access twitter with CoNET for Twitter client use email protocol without VPN. And how to download Twitter's video stream to local.](/resources/twitterSetup.png?raw=true)](http://www.youtube.com/watch?v=In15vUhQyIY)
9899

99100
[![How to setup CoNET.](/resources/setup.png?raw=true)](http://www.youtube.com/watch?v=wUOOuAkawJw)

app/CoNET.d.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,8 @@ interface iTransferData {
224224
expire: string
225225
isAnnual: boolean
226226
paidID: string[]
227+
totalMonth: number
228+
paidAmount: number
227229
automatically: boolean
228230
promo: CoPromo[]
229231
}
@@ -640,3 +642,15 @@ declare namespace SocketIOClient {
640642
}
641643
}
642644

645+
interface DateConstructor {
646+
isLeapYear: ( year: number ) => boolean
647+
getDaysInMonth: (year: number, month: number ) => number
648+
649+
650+
}
651+
652+
interface Date {
653+
isLeapYear: ()=> boolean
654+
getDaysInMonth: () => number
655+
addMonths: ( n: number ) => Date
656+
}

app/localWebServer.ts

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -442,8 +442,7 @@ export default class localServer {
442442
const com: QTGateAPIRequestCommand = {
443443
command: 'activePassword',
444444
Args: [ pass ],
445-
error: null,
446-
requestSerial: Crypto.randomBytes(8).toString('hex')
445+
error: null
447446
}
448447
console.log ( Util.inspect ( com ))
449448

@@ -488,8 +487,7 @@ export default class localServer {
488487
const com: QTGateAPIRequestCommand = {
489488
command: 'getAvaliableRegion',
490489
Args: [],
491-
error: null,
492-
requestSerial: Crypto.randomBytes(8).toString('hex')
490+
error: null
493491
}
494492

495493
console.log (`socket.on ( 'getAvaliableRegion') no this.connectCommand`)
@@ -594,8 +592,7 @@ export default class localServer {
594592
const com: QTGateAPIRequestCommand = {
595593
command: 'cardToken',
596594
error: null,
597-
Args: [ payment ],
598-
requestSerial: Crypto.randomBytes(8).toString ('hex')
595+
Args: [ payment ]
599596
}
600597
CallBack1 ()
601598
console.log ( `socket.on cardToken send to QTGate!`, Util.inspect ( com, false, 2, true ))
@@ -617,6 +614,19 @@ export default class localServer {
617614
})
618615

619616
})
617+
618+
socket.on ( 'cancelPlan', ( CallBack1 ) => {
619+
CallBack1 ()
620+
const com: QTGateAPIRequestCommand = {
621+
command: 'cancelPlan',
622+
error: null,
623+
Args: []
624+
}
625+
return this.sendRequest ( socket, com, ( err: number, res: QTGateAPIRequestCommand ) => {
626+
socket.emit ( 'cancelPlan', err, res )
627+
})
628+
})
629+
620630
}
621631

622632
private doingCheckImap ( socket: SocketIO.Socket ) {

0 commit comments

Comments
 (0)