ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
创建用户对象 ``` m('cloud')->ada_member_create($member_id); ``` 创建结算账户 ``` m('cloud')->settleaccount_create($param);//$param如图所示 ``` 企业开户 ``` m('cloud')->company_create($user_id); ``` 查询余额 ``` m('cloud')->get_balance($member_id,$type);//$type账户类型,01或者为空是基本户,02是手续费账户,03是过渡户 ``` 余额取现 ``` m('cloud')->withdraw($member_id,$money);//取现金额,必须大于0,人民币为元,保留两位小数点,如0.10、100.05等,必填 ``` 计算订单佣金数据 ``` m('cloud')->set_order($orderid=0);//订单id ``` 订单完结佣金发放 ``` m('cloud')->grant_order($orderid=0);//订单id ``` 红包发放 ``` m('cloud')->redPacket_send($orderid);//拼团订单id ``` 设置店铺等级 ``` m('cloud')->set_shop_data($level_id=0);//拼团订单id ``` 记录批发拿货金额 ``` m('cloud')->set_wholesale_money($recharge_id=0);//拼团订单id ``` 批发拿货金额发放 ``` m('cloud')->grant_wholesale_money($recharge_id=0);//拼团订单id ``` 撤销支付(用作退款) ``` m('cloud')->reverse($payment_id,$refundno,$refund_amt);//异步通知,更新订单状态 ``` 确认支付(用作分账) ``` m('cloud')->payment_confirm($ordersn,$payment_id,$money,$div_members); ```