xialei il y a 1 an
Parent
commit
1b4112686a
1 fichiers modifiés avec 0 ajouts et 41 suppressions
  1. 0 41
      app/common/repositories/user/UserRepository.php

+ 0 - 41
app/common/repositories/user/UserRepository.php

@@ -933,47 +933,6 @@ class UserRepository extends BaseRepository
933 933
         return $user;
934 934
     }
935 935
 
936
-        /**
937
-     * @param int $uid 用户ID
938
-     * @param string $score 积分
939
-     * @param int $status 积分状态
940
-     * @param string $mark 备注
941
-     * @param string $has_qian 连续签到天数
942
-     * @param string $today_signintime 签到时间
943
-     * @param int $order_id 订单ID
944
-     * @param int $pm 1-收入。2-支出
945
-     * @param string $order_type
946
-     * @throws DbException
947
-     */
948
-    public function sign_add($uid, $score, $status, $mark, $has_qian = '', $today_signintime = '', $order_id = 0, $pm = 1, $order_type = '',$type='',$settlement_time = '')
949
-    {
950
-        if(!in_array($type,[1,2])){
951
-            // 其他情况都直接返回,因为目前只有365专区购买才可以获得
952
-            return false;
953
-        }
954
-
955
-        $ins_data['uid'] = $uid;
956
-        $ins_data['continuity_day'] = $has_qian;
957
-        $ins_data['reward_socre'] = $score;
958
-        $ins_data['signin_time'] = $today_signintime;
959
-        $ins_data['addtime'] = time();
960
-        $ins_data['status'] = $status;
961
-        $ins_data['mark'] = $mark;
962
-        $ins_data['type'] = $type;
963
-        $ins_data['settlement_time'] = $settlement_time;// 结算时间 真正到了结算时间会结算
964
-        $ins_data['order_id'] = $order_id;
965
-        $ins_data['pm'] = $pm;
966
-        $ins_data['order_type'] = $order_type;
967
-        Db::name('user_sign_score')->insertGetId($ins_data);
968
-
969
-        if($pm == 1 && $status == 1){
970
-            Db::name('user')->where('uid',$uid)->inc('score', $score)->update();
971
-        }
972
-        if($pm == 2){
973
-            Db::name('user')->where('uid', $uid)->dec('score', $score)->update();
974
-        }
975
-    }
976
-
977 936
     /**
978 937
      * @param string $type
979 938
      * @param array $userInfo