invoke-super/range {v15..v16} Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V
iget-object v8 v15 Lcom/PopStar/org/PayHandler;->context:Landroid/app/Activity;
check-cast v8 Lcom/PopStar/org/PopStar;
invoke-virtual/range {v16..v16} Landroid/os/Message;->getData()Landroid/os/Bundle;
move-result-object v3
const-string v12 "json"
invoke-virtual {v3,v12} Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v6
const-string v12 "result"
invoke-virtual {v3,v12} Landroid/os/Bundle;->getInt(Ljava/lang/String;)I
move-result v9
const-string v12 "[result]"
new-instance v13 Ljava/lang/StringBuilder;
invoke-static {v9} Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object v14
invoke-direct {v13,v14} Ljava/lang/StringBuilder;->(Ljava/lang/String;)V
const-string v14 "="
invoke-virtual {v13,v14} Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v13
invoke-virtual {v13,v6} Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v13
invoke-virtual {v13} Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v13
invoke-static {v12,v13} Landroid/util/Log;->v(Ljava/lang/String;Ljava/lang/String;)I
const/4 v12 1
if-ge v9 v12 :label_73
invoke-virtual {v8} Lcom/PopStar/org/PopStar;->getType()I
move-result v12
invoke-virtual {v8,v12} Lcom/PopStar/org/PopStar;->addCoin(I)V
const/4 v12 -1
invoke-virtual {v8,v12} Lcom/PopStar/org/PopStar;->setType(I)V
const-string v12 "提示"
const-string v13 "支付成功"
invoke-static {v8,v12,v13} Lcom/util/BaseHelper;->showDialog(Landroid/app/Activity;Ljava/lang/String;Ljava/lang/String;)V
label_72:
return-void
label_73:
const/16 v12 0x65
if-ne v9 v12 :label_178
const-string v12 "paycode"
invoke-virtual {v3,v12} Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v10
const-string v12 ","
invoke-virtual {v10,v12} Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;
move-result-object v0
array-length v7 v0
const/4 v11 0
invoke-virtual {v8} Lcom/PopStar/org/PopStar;->getArrayPrice()[I
move-result-object v1
const/4 v4 0
label_96:
if-lt v4 v7 :label_136
const/high16 v12 0x42c8
div-float/2addr v11 v12
new-instance v12 Ljava/lang/StringBuilder;
const-string v13 "已经赠送价值"
invoke-direct {v12,v13} Ljava/lang/StringBuilder;->(Ljava/lang/String;)V
invoke-static {v11} Ljava/lang/String;->valueOf(F)Ljava/lang/String;
move-result-object v13
invoke-virtual {v12,v13} Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v12
const-string v13 "元的钻石!"
invoke-virtual {v12,v13} Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v12
invoke-virtual {v12} Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
const-string v12 "提示"
invoke-static {v8,v12,v2} Lcom/util/BaseHelper;->showDialog(Landroid/app/Activity;Ljava/lang/String;Ljava/lang/String;)V
const/4 v12 -1
invoke-virtual {v8,v12} Lcom/PopStar/org/PopStar;->setType(I)V
goto :label_72
label_136:
const-string v12 "com.PopPet.org"
new-instance v13 Ljava/lang/StringBuilder;
const-string v14 "paycode =:"
invoke-direct {v13,v14} Ljava/lang/StringBuilder;->(Ljava/lang/String;)V
aget-object v14 v0 v4
invoke-virtual {v13,v14} Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v13
invoke-virtual {v13} Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v13
invoke-static {v12,v13} Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
aget-object v12 v0 v4
invoke-static {v12} Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
move-result v5
invoke-virtual {v8,v5} Lcom/PopStar/org/PopStar;->addCoin(I)V
const/4 v12 -1
invoke-virtual {v8,v12} Lcom/PopStar/org/PopStar;->setType(I)V
aget v12 v1 v5
int-to-float v12 v12
add-float/2addr v11 v12
add-int/lit8 v4 v4 1
goto :label_96
label_178:
const/4 v12 -1
invoke-virtual {v8,v12} Lcom/PopStar/org/PopStar;->addCoin(I)V
const/4 v12 -1
invoke-virtual {v8,v12} Lcom/PopStar/org/PopStar;->setType(I)V
const/4 v12 -1
if-ge v9 v12 :label_197
const-string v12 "提示"
const-string v13 "用户取消支付。"
invoke-static {v8,v12,v13} Lcom/util/BaseHelper;->showDialog(Landroid/app/Activity;Ljava/lang/String;Ljava/lang/String;)V
goto :label_72
label_197:
if-nez v9 :label_208
const-string v12 "提示"
const-string v13 "支付失败,请联系客服。"
invoke-static {v8,v12,v13} Lcom/util/BaseHelper;->showDialog(Landroid/app/Activity;Ljava/lang/String;Ljava/lang/String;)V
goto/16 :label_72
label_208:
const/16 v12 -0x65
if-ne v9 v12 :label_221
const-string v12 "提示"
const-string v13 "赠送失败,请联系客服。"
invoke-static {v8,v12,v13} Lcom/util/BaseHelper;->showDialog(Landroid/app/Activity;Ljava/lang/String;Ljava/lang/String;)V
goto/16 :label_72
label_221:
const-string v12 "提示"
const-string v13 "未知错误,请联系客服。"
invoke-static {v8,v12,v13} Lcom/util/BaseHelper;->showDialog(Landroid/app/Activity;Ljava/lang/String;Ljava/lang/String;)V
goto/16 :label_72