setSetting($paymentSetting); } public function getUsable() { if (\YunShop::app()->getMemberId() == 0) { return 0; } return Member::uniacid()->where('uid',\YunShop::app()->getMemberId())->value('credit2'); } public function getOther() { return [ 'need_password' => $this->needPassword(), 'usable' => $this->getUsable() ]; } }