getAmount(); } public function _getAmount() { $share_model = ShoppingShareCoupon::where('order_id', $this->getOrder()->id)->first(); if ($share_model && $share_model->share_coupon) { return count($share_model->share_coupon); } return 0; } public function unifyString() { return "{$this->getAmount()}个{$this->getTitle()}"; } public function afterPayGive() { return 1; } public function getTitle() { return '红包'; } public function getDesc() { return '快分享给小伙伴'; } public function getIcon() { return 'red_packet.png'; } public function getUrl() { return 'couponShare'; } public function getMiniUrl() { return '/packageD/redPacket/coupon_share'; } }