Kaynağa Gözat

Wesmiler 人人车 初始化项目 0816

APPLE 3 yıl önce
ebeveyn
işleme
7096e39a96
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. 3 0
      application/api/controller/v1/User.php

+ 3 - 0
application/api/controller/v1/User.php

@@ -702,6 +702,9 @@ class User extends ApiController
         if($sid<=0){
         if($sid<=0){
             return $this->ApiJson(-1,'参数错误');
             return $this->ApiJson(-1,'参数错误');
         }
         }
+        if($sid == $this->auth->user()['id']){
+            return $this->ApiJson(-1,'自己分享给自己无奖励');
+        }
         $redbagMoney = sys_config('user_redbag_money','user');
         $redbagMoney = sys_config('user_redbag_money','user');
         $redbagNum = sys_config('user_redbag_num','user');
         $redbagNum = sys_config('user_redbag_num','user');
         if($redbagMoney <= 0 || $redbagNum <= 0){
         if($redbagMoney <= 0 || $redbagNum <= 0){