소스 검색

Wesmiler 人人车 初始化项目 0816

APPLE 3 년 전
부모
커밋
7096e39a96
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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){
             return $this->ApiJson(-1,'参数错误');
         }
+        if($sid == $this->auth->user()['id']){
+            return $this->ApiJson(-1,'自己分享给自己无奖励');
+        }
         $redbagMoney = sys_config('user_redbag_money','user');
         $redbagNum = sys_config('user_redbag_num','user');
         if($redbagMoney <= 0 || $redbagNum <= 0){