| 1234567891011121314151617181920212223242526272829303132 |
- <?PHP
- /**
- * Created by PhpStorm.
- * User: shenyang
- * Date: 2017/10/12
- * Time: 下午3:28
- */
- namespace app\frontend\modules\finance\models;
- use app\common\models\VirtualCoin;
- class PointCoin extends VirtualCoin
- {
- protected function _getExchangeRate()
- {
- return \Setting::get('point.set.money') ?: 1;
- }
- protected function _getName()
- {
- $credit1 = trim(\Setting::get('shop.shop.credit1'));
- return $credit1 ? $credit1 : '积分';
- // return \Setting::get('shop.shop.credit1','积分');
- }
- protected function _getCode()
- {
- return 'point';
- }
- }
|