PointCoin.php 618 B

1234567891011121314151617181920212223242526272829303132
  1. <?PHP
  2. /**
  3. * Created by PhpStorm.
  4. * User: shenyang
  5. * Date: 2017/10/12
  6. * Time: 下午3:28
  7. */
  8. namespace app\frontend\modules\finance\models;
  9. use app\common\models\VirtualCoin;
  10. class PointCoin extends VirtualCoin
  11. {
  12. protected function _getExchangeRate()
  13. {
  14. return \Setting::get('point.set.money') ?: 1;
  15. }
  16. protected function _getName()
  17. {
  18. $credit1 = trim(\Setting::get('shop.shop.credit1'));
  19. return $credit1 ? $credit1 : '积分';
  20. // return \Setting::get('shop.shop.credit1','积分');
  21. }
  22. protected function _getCode()
  23. {
  24. return 'point';
  25. }
  26. }