diff --git a/addons/shopro/controller/user/WalletLog.php b/addons/shopro/controller/user/WalletLog.php index 468cc51..fb09b37 100755 --- a/addons/shopro/controller/user/WalletLog.php +++ b/addons/shopro/controller/user/WalletLog.php @@ -71,6 +71,7 @@ class WalletLog extends Common $user = auth_user(); $user_id = $user->id; + if (!Sms::check($params['exchange_phone'], $params['code'], 'score')) { $this->error('验证码不正确'); } diff --git a/addons/shopro/service/CommissionScoreLog.php b/addons/shopro/service/CommissionScoreLog.php new file mode 100644 index 0000000..ba3d460 --- /dev/null +++ b/addons/shopro/service/CommissionScoreLog.php @@ -0,0 +1,34 @@ +user = is_numeric($user) ? User::get($user) : $user; + $this->user = $this->user ?: auth_user(); + } + + /** + * 计算用户积分 + * @return + */ + public function addLog() { + + } + + /** + * 获取用户等级 + */ + public function getUserLevel() { + + } +} \ No newline at end of file diff --git a/addons/shopro/service/commission/Agent.php b/addons/shopro/service/commission/Agent.php index 9aa2010..ee3f283 100755 --- a/addons/shopro/service/commission/Agent.php +++ b/addons/shopro/service/commission/Agent.php @@ -538,4 +538,13 @@ class Agent // 循环完所有的 如果是①的情况则代表都不符合条件,如果是②则代表都符合条件 返回对应状态即可 return boolval($level->upgrade_type); } + + /** + * 计算分销用户用户积分 + * @return + */ + public function calcScore() { + $comission_score = 0; + + } } diff --git a/addons/shopro/service/order/OrderCreate.php b/addons/shopro/service/order/OrderCreate.php index 06d4bdc..9b870e4 100755 --- a/addons/shopro/service/order/OrderCreate.php +++ b/addons/shopro/service/order/OrderCreate.php @@ -614,7 +614,7 @@ class OrderCreate * * @return array */ - public function getCoupons($calc_type = 'coupons') + public function xgetCoupons($calc_type = 'coupons') { $this->calc_type = $calc_type; // 检查是否可下单