好友
阅读权限10
听众
最后登录1970-1-1
|
小幸福
发表于 2018-4-2 23:33
本帖最后由 小幸福 于 2018-4-3 15:43 编辑
此贴有些问题,改修改位置只适合联通卡
打开支付窗口关闭就可以了
移动不清楚什么原因去掉send_msm权限还会收到扣费短信
并且打开支付窗口关掉会支付失败
0.大佬略过,菜鸟贴
原版修改版下载地址 https://pan.baidu.com/s/1dL4JN0wdkdcEoMrdNujjbg
1.修改switch代码
:pswitch_data_0
.packed-switch 0x1
:pswitch_1
:pswitch_1
:pswitch_1
.end packed-switch
2.支付时调用的方法 smali代码
可以搜索PayResult找到
.method public PayResult(Ljava/lang/String;IILjava/lang/String;)V
.locals 3
.param p1, "paycode" # Ljava/lang/String;
.param p2, "flag" # I
.param p3, "flag2" # I
.param p4, "error" # Ljava/lang/String;
.prologue
const/4 v2, 0x0
.line 35
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "unicom pay, result = "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, ", paycode = "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, ", msg = "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-string v1, ", flag2 = "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lcom/yodo1/sdk/kit/YLog;->i(Ljava/lang/String;)V
.line 36
packed-switch p2, :pswitch_data_0
.line 48
:pswitch_0
iget-object v0, p0, Lcom/yodo1/sdk/pay/PayAdapterUnicom3C$1;->val$callback:Lcom/yodo1/sdk/adapter/callback/ChannelSDKCallback;
if-eqz v0, :cond_0
.line 49
iget-object v0, p0, Lcom/yodo1/sdk/pay/PayAdapterUnicom3C$1;->val$callback:Lcom/yodo1/sdk/adapter/callback/ChannelSDKCallback;
const/4 v1, 0x1
invoke-interface {v0, v1, v2, p4}, Lcom/yodo1/sdk/adapter/callback/ChannelSDKCallback;->onResult(IILjava/lang/String;)V
.line 53
:cond_0
:goto_0
return-void
.line 38
:pswitch_1
iget-object v0, p0, Lcom/yodo1/sdk/pay/PayAdapterUnicom3C$1;->val$callback:Lcom/yodo1/sdk/adapter/callback/ChannelSDKCallback;
if-eqz v0, :cond_0
.line 39
iget-object v0, p0, Lcom/yodo1/sdk/pay/PayAdapterUnicom3C$1;->val$callback:Lcom/yodo1/sdk/adapter/callback/ChannelSDKCallback;
const/4 v1, 0x1
invoke-interface {v0, v1, v2, p4}, Lcom/yodo1/sdk/adapter/callback/ChannelSDKCallback;->onResult(IILjava/lang/String;)V
goto :goto_0
.line 43
:pswitch_2
iget-object v0, p0, Lcom/yodo1/sdk/pay/PayAdapterUnicom3C$1;->val$callback:Lcom/yodo1/sdk/adapter/callback/ChannelSDKCallback;
if-eqz v0, :cond_0
.line 44
iget-object v0, p0, Lcom/yodo1/sdk/pay/PayAdapterUnicom3C$1;->val$callback:Lcom/yodo1/sdk/adapter/callback/ChannelSDKCallback;
const/4 v1, 0x1
invoke-interface {v0, v1, v2, p4}, Lcom/yodo1/sdk/adapter/callback/ChannelSDKCallback;->onResult(IILjava/lang/String;)V
goto :goto_0
.line 36
:pswitch_data_0
.packed-switch 0x1
:pswitch_1
:pswitch_1
:pswitch_1
.end packed-switch
.end method |
免费评分
-
查看全部评分
|