package com.chaincloud.chaincloudv.api.result;

/**
 * Created by zhumingu on 16/7/25.
 */
public class TxRequest {
    public String coinCode;
    public String userTxNo;
    public String outs;
    public int isDynamicFee;
    public int outType;

    public TxRequest(){}

    public TxRequest(String userTxNo){
        this.userTxNo = userTxNo;
    }

    @Override
    public String toString() {
        return "{\"coin_code\":\""+ coinCode
                +"\",\"is_dynamic_fee\":"+ isDynamicFee
                +",\"outs\":\""+ outs
                +"\",\"user_tx_no\":\""+ userTxNo
                +"\",\"outType\":" + outType + "}";
    }
}

@@ -406,14 +406,24 @@
     
-return
+String result = 
  %22%7B%5C
@@ -592,16 +592,24 @@
 userTxNo
+ +%22%5C%22%22;%0A
 %0A       
@@ -613,51 +613,132 @@
     
-        +%22%5C%22,%5C%22outType%5C%22:%22 + outType
+if (outType != 0)%7B%0A            result += %22,%5C%22outType%5C%22:%22 + outType;%0A        %7D%0A        result
  +
+=
  %22%7D%22;
+%0A%0A        return result;
 %0A   

fix compatible bugs