|
@@ -151,7 +151,7 @@ public class WeixinService {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
String total_fee = contentJson.getString("total_fee");
|
|
|
- Double total_fee_double_value = Double.valueOf(total_fee);
|
|
|
+ Double total_fee_double_value = Double.valueOf(total_fee)/100;
|
|
|
DecimalFormat df = new DecimalFormat("######0.00");
|
|
|
String total_fee_to_yuan = df.format(total_fee_double_value);
|
|
|
apiResult = sendRemoteDiagnosisPatientPayMsg(openid, urlString, out_trade_no, name_utf8, total_fee_to_yuan);
|
|
@@ -194,7 +194,7 @@ public class WeixinService {
|
|
|
String out_trade_no = contentJson.getString("out_trade_no");
|
|
|
String name = contentJson.getString("name");
|
|
|
String total_fee = contentJson.getString("total_fee");
|
|
|
- Double total_fee_double_value = Double.valueOf(total_fee);
|
|
|
+ Double total_fee_double_value = Double.valueOf(total_fee)/100;
|
|
|
DecimalFormat df = new DecimalFormat("######0.00");
|
|
|
String total_fee_to_yuan = df.format(total_fee_double_value);
|
|
|
apiResult = sendRemoteDiagnosisRefundMsg(openid, urlString, out_trade_no, total_fee_to_yuan);
|