main
commit
dd5732be04
@ -0,0 +1,34 @@ |
||||
<?php |
||||
|
||||
namespace addons\shopro\service; |
||||
|
||||
use app\admin\model\User; |
||||
use app\admin\model\shopro\commission\Level as LevelModel; |
||||
use app\admin\model\shopro\user\WalletLog as WalletLogModel; |
||||
|
||||
|
||||
class CommissionScoreLog |
||||
{ |
||||
public $user = null; |
||||
|
||||
public function __construct($user = null) |
||||
{ |
||||
$this->user = is_numeric($user) ? User::get($user) : $user; |
||||
$this->user = $this->user ?: auth_user(); |
||||
} |
||||
|
||||
/** |
||||
* 计算用户积分 |
||||
* @return |
||||
*/ |
||||
public function addLog() { |
||||
|
||||
} |
||||
|
||||
/** |
||||
* 获取用户等级 |
||||
*/ |
||||
public function getUserLevel() { |
||||
|
||||
} |
||||
} |
Loading…
Reference in new issue