Skip to content

Commit

Permalink
bug fix in read.js
Browse files Browse the repository at this point in the history
  • Loading branch information
z4yx committed Mar 23, 2022
1 parent 1055b13 commit 8727a7e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion assets/read.js
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@
const number = f15.slice(20, 40);
const issue_date = f15.slice(40, 48);
const expiry_date = f15.slice(48, 56);
const province = f17.slice(8, 12);
let province = f17.slice(8, 12);
let city = f17.slice(12, 16);
let type = parseInt(f17.slice(20, 22), 16);
type = (type in TUnionDF11Type) ? TUnionDF11Type[type] : `(${type})`;
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: nfsee
description: An NFC data dumper.

version: 2.2.0+1
version: 2.2.0+2

environment:
sdk: ">=2.12.0 <3.0.0"
Expand Down
4 changes: 2 additions & 2 deletions tests/reader-mock.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const PresetAPDU = [
[CardEnum.CU, '00B095001E', '0000000100000000010100010102030405060708201701012027123100009000'],

[CardEnum.TU, '00A4040008A00000063201010500', '6F318408A000000632010105A5259F0801029F0C1E01011000FFFFFFFF020103105170070104791381201907182040123100009000'],
[CardEnum.TU, '00B097000B', '00000156100010000001019000'],
[CardEnum.TU, '00B097000B', '00000156580058400001019000'],

[CardEnum.ChinaID, '0036000008', '1122334455667788900000'],
[CardEnum.ChinaID, '00A40000026002', '900000'],
Expand Down Expand Up @@ -96,7 +96,7 @@ const PresetAPDU = [

];
//let MockCard = CardEnum.Octo;
let MockCard = CardEnum.Macau;
let MockCard = CardEnum.TU;

function poll() {
const getType = () => {
Expand Down

0 comments on commit 8727a7e

Please sign in to comment.