=100是提现消费等支出项 */ const MONEY_TYPE_CS_PLAT_NEW_USER = 1; // 社区服务点新用户奖励(线上订单完成) const MONEY_TYPE_CS_FIRST_ORDER = 2; // 社区服务点新用户线上首单奖励(线上订单完成) const MONEY_TYPE_CS_OL_ORDER = 3; // 社区服务点用户线上订单分账(线上订单完成) const MONEY_TYPE_STORE_PLAT_NEW_USER = 4; // 商户平台新用户奖励 const MONEY_TYPE_STORE_FIRST_ORDER = 5; // 商户当日首单奖励 const MONEY_TYPE_STORE_OL_ORDER_COMP = 6; // 商户线上订单完成收入 const MONEY_TYPE_STORE_OFL_ORDER_COMP = 7; // 商户线下订单完成收入 const MONEY_TYPE_USER_OL_ORDER_REFUND = 8; // 用户线上订单退款 const MONEY_TYPE_USER_OFL_ORDER = 100; // 用户线下支付订单 const MONEY_TYPE_USER_OL_ORDER = 101; // 用户线上支付订单 /** * 状态 */ const STATUS_NORMAL = 1; const STATUS_ABNORMAL = 2; /** * The table associated with the model. * * @var string */ protected $table = 'lanzu_financial_record'; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'user_id', 'user_type', 'money', 'money_type', 'source_id', 'source_type', 'desc', 'comment', 'status', ]; /** * The attributes that should be cast to native types. * * @var array */ protected $casts = []; }