创建用户对象
```
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);
```
- 数据表
- ims_ewei_shop_college_clickcount
- ims_ewei_shop_contract
- ims_ewei_shop_contract_category
- ims_ewei_shop_contract_log
- ims_ewei_shop_member_bonus
- ims_ewei_shop_member_task
- ims_ewei_shop_member_withdraw
- ims_ewei_shop_founder
- ims_ewei_shop_founder_bill
- ims_ewei_shop_dividend_recharge
- ims_ewei_shop_bank
- ims_ewei_shop_member
- ims_ewei_shop_member_recharge
- ims_ewei_shop_license_agency
- ewei_shop_merch_bonus
- ims_ewei_shop_merch_dividend_level
- ims_ewei_shop_merch_pay
- ims_ewei_shop_order
- ims_ewei_shop_order_goods
- ims_ewei_shop_order_refund
- ims_ewei_shop_account
- ims_ewei_shop_member_info
- ims_ewei_shop_user
- ims_ewei_shop_user_info
- ims_ewei_shop_dividend_merch
- ims_ewei_shop_dividend_upgrade
- ims_ewei_shop_cash_record
- model
- 店铺model
- 云计算model
- QrcodeModel
- 商学院model
- common
- 灵活用工model
- memberModel
- 散记
- 云计算数据库
- 用户完成任务信息表
- 用户任务培训/合同签订表