File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -153,8 +153,8 @@ var createSignhd=$XidN.read("createSignhdname");
153153if ( logs == 1 ) console . log ( data )
154154var obj = JSON . parse ( data ) ;
155155if ( obj . code == "200" )
156- result2 += "【当前账户信息】" + toDecimal2 ( obj . data . cumulativeMoney ) + "💸现金" + ",连续签" + obj . data . cumulativeSignCount + "天," + obj . data . currentWing + "元宝" ;
157156
157+ result2 += "【当前账户信息】" + ( Number ( obj . data . cumulativeMoney ) / 100 ) . toFixed ( 2 ) + "💸现金" + ",连续签" + obj . data . cumulativeSignCount + "天," + obj . data . currentWing + "元宝" ;
158158
159159
160160result2 = "" + result1 + "" + result2 + "\n" ;
@@ -199,30 +199,9 @@ if (so==true)
199199
200200
201201
202-
203-
204-
205-
206202}
207203}
208204
209- function toDecimal2 ( x ) {
210- if ( x != '.' ) {
211- var f = Math . round ( x - 0 ) / 100 ;
212- var s = f . toString ( ) ;
213- var rs = s . indexOf ( '.' ) ;
214- if ( rs <= 0 ) {
215- rs = s . length ;
216- s += '.' ;
217- }
218- while ( s . length <= rs + 2 ) {
219- s += '0' ;
220- }
221- return s ;
222- } else {
223- return '0.00' ;
224- }
225- } ;
226205
227206
228207
You can’t perform that action at this time.
0 commit comments