ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# :-: **读取资金信息** 方法:`TM()->money('A','B','C')` | 代码 | 说明 | | --- | --- | | A | 资金账户ID或指定货币(CNY)类型、默认输出当前语言货币类型资金账户;不指定则读取当前账户 | | B | 账号UID,读取其它账户则传入 `默认为当前账号` | | C | 账户类型 funds:资金账户,withdraw:收款账户; `默认为资金账户` | | A B C为空 | 自动读取当前账号输出当前默认货币类型的资金信息 | 输出信息: | 字段 | 说明 | | --- | --- | | ['card'] ['id'] | 资金账户卡号 | | ['card'] ['uid'] | 所属用户ID | | ['card'] ['type'] | 账户类型 funds:资金账户,withdraw:收款账户| | ['card'] ['alias'] | 账户资金类型 | | ['card'] ['total'] | 当前总计资金 | | ['card'] ['money'] | 流动资金数量 | | ['card'] ['dmoney'] | 冻结资金数量 | | ['card'] ['data'] | 附加数据 | | ['card'] ['locking'] | 锁定资金(只能用于消费) | | ['card'] ['addtime'] | 开户时间戳 | | ['card'] ['lasttime'] | 最后更新时间戳 | | ['card'] ['status'] | 状态 1正常 | | --- | --- | | ['type'] ['id'] | 资金类型ID | | ['type'] ['name'] | 资金类型 名称 | | ['type'] ['alias'] | 资金类型别名 | | ['type'] ['sign'] | 资金货币符号 | | ['type'] ['ico'] | 资金货币图标 | | ['type'] ['info'] | 资金货币描述 | | ['type'] ['status'] | 状态 1正常 | | ['type'] ['sort'] | 排序 | | ['type'] ['defaults'] | 是否默认 1 默认 | 代码示范: ~~~php {php} $qianbao = TM()->money(); //读取钱包信息 {/php} 我的钱包 No:{$qianbao.card.id} <div class="line b-b"></div> 总计资金:{$qianbao.card.total} {$qianbao.type.sign}<br> 流动资金:{$qianbao.card.money} {$qianbao.type.sign}<br> 冻结资金:{$qianbao.card.dmoney} {$qianbao.type.sign} ~~~ 输出数组示范: ~~~array array(2) { ["card"]=> array(11) { ["id"]=> string(6) "800000" ["uid"]=> string(5) "10000" ["type"]=> string(5) "funds" ["alias"]=> string(3) "CNY" ["money"]=> string(6) "799.06" ["dmoney"]=> string(4) "0.00" ["data"]=> NULL ["locking"]=> string(1) "0" ["addtime"]=> string(10) "1612151630" ["lasttime"]=> string(10) "1612151630" ["status"]=> string(1) "1" } ["type"]=> array(9) { ["id"]=> string(5) "10000" ["name"]=> string(9) "人民币" ["alias"]=> string(3) "CNY" ["sign"]=> string(3) "¥" ["ico"]=> string(9) "fa fa-rmb" ["info"]=> string(15) "人民币货币" ["status"]=> string(1) "1" ["sort"]=> string(1) "1" ["defaults"]=> string(1) "1" } } ~~~