| 88 | |
| 89 | |
| 90 | function setupInterceptor() { |
| 91 | |
| 92 | /** |
| 93 | * |
| 94 | */ |
| 95 | |
| 96 | switch (address.Version) { |
| 97 | |
| 98 | case 8555: |
| 99 | Interceptor.attach(address.WechatAppHtml, { |
| 100 | onEnter(args) { |
| 101 | this.context.rdx = address.WechatWebHtml; |
| 102 | sendMessage() |
| 103 | } |
| 104 | }); |
| 105 | |
| 106 | break; |
| 107 | |
| 108 | |
| 109 | case 9105: |
| 110 | Interceptor.attach(address.SwitchVersion, { |
| 111 | onEnter(args) { |
| 112 | this.context.r8 = this.context.rax |
| 113 | sendMessage() |
| 114 | } |
| 115 | }) |
| 116 | break; |
| 117 | |
| 118 | case 9079: |
| 119 | Interceptor.attach(address.SwitchVersion, { |
| 120 | onEnter(args) { |
| 121 | this.context.r8 = this.context.rax |
| 122 | sendMessage() |
| 123 | } |
| 124 | }) |
| 125 | break; |
| 126 | |
| 127 | case 9115: |
| 128 | Interceptor.attach(address.SwitchVersion, { |
| 129 | onEnter(args) { |
| 130 | this.context.r8 = this.context.rax |
| 131 | sendMessage() |
| 132 | } |
| 133 | }) |
| 134 | break; |
| 135 | |
| 136 | case 9129: |
| 137 | Interceptor.attach(address.SwitchVersion, { |
| 138 | onEnter(args) { |
| 139 | this.context.r8 = this.context.rax |
| 140 | sendMessage() |
| 141 | } |
| 142 | }) |
| 143 | break; |
| 144 | case 11159: |
| 145 | Interceptor.attach(address.SwitchVersion, { |
| 146 | onEnter(args) { |
| 147 | this.context.r8 = this.context.rax |