'申购中', self::STATUS_SIGNING => '中签',//'已签名', self::STATUS_SIGNED => '已上市', self::STATUS_UNSIGNED => '未中签', self::STATUS_POST_PAY => '申购中(待支付)', self::STATUS_POST_PAY_BACK => '已上市(未支付)', self::STATUS_REFUND => '订单退款', self::STATUS_CLOSED => '订单关闭', ]; const PAY_TYPE_ONE = 1;//正常支付 const PAY_TYPE_TWO = 2;//后支付 public static function getRealFee($userId) { return self::where('user_id', $userId)->sum('get_fee'); } }