修改用户id

This commit is contained in:
manghe 2025-03-21 16:07:06 +00:00
parent 837b6d19cb
commit 7ce92bf7bf
20 changed files with 25 additions and 40 deletions

View File

@ -28,7 +28,6 @@ class CouponReceive extends Base
$whe[] = ['title', 'like', '%' . $keyword . '%'];
}
if ($user_id) {
$user_id = $user_id - 1260;
$whe[] = ['user_id', '=', $user_id];
}
if (!empty($status)) {

View File

@ -29,7 +29,6 @@ class Finance extends Base
$whe[] = ['order_type', '<', 12];
$whe[] = ['status', '=', 1];
if ($user_id) {
$user_id = $user_id - 1260;
$whe[] = ['user_id', '=', $user_id];
}
if ($mobile) {
@ -83,7 +82,6 @@ class Finance extends Base
$addtime = trim(input('get.addtime'));
$whe = [];
if ($user_id) {
$user_id = $user_id - 1260;
$whe[] = ['user_id', '=', $user_id];
}
if ($mobile) {
@ -129,7 +127,6 @@ class Finance extends Base
$addtime = trim(input('get.addtime'));
$whe = [];
if ($user_id) {
$user_id = $user_id - 1260;
$whe[] = ['user_id', '=', $user_id];
}
if ($mobile) {
@ -173,7 +170,6 @@ class Finance extends Base
$addtime = trim(input('get.addtime'));
$whe = [];
if ($user_id) {
$user_id = $user_id - 1260;
$whe[] = ['user_id', '=', $user_id];
}
if ($mobile) {
@ -218,7 +214,6 @@ class Finance extends Base
$type = trim(input('get.type'));
$whe = [];
if ($user_id) {
$user_id = $user_id - 1260;
$whe[] = ['user_id', '=', $user_id];
}
if ($mobile) {
@ -275,7 +270,6 @@ class Finance extends Base
$whe = [];
// $whe[] = ['status', '=', 2];
if ($user_id) {
$user_id = $user_id - 1260;
$whe[] = ['user_id', '=', $user_id];
}
if ($mobile) {

View File

@ -38,7 +38,6 @@ class Order extends Base
$whe[] = ['status', '=', 0];
$whe[] = ['kd_is', '=', 1];
if ($user_id) {
$user_id = $user_id - 1260;
$whe[] = ['user_id', '=', $user_id];
}
if ($mobile) {
@ -86,7 +85,6 @@ class Order extends Base
$whe[] = ['status', '=', 1];
$whe[] = ['kd_is', '=', 0];
if ($user_id) {
$user_id = $user_id - 1260;
$whe[] = ['user_id', '=', $user_id];
}
if ($mobile) {
@ -174,7 +172,6 @@ class Order extends Base
$whe = array();
if ($user_id) {
$user_id = $user_id - 1260;
$whe[] = ['user_id', '=', $user_id];
}
if ($mobile) {
@ -258,7 +255,6 @@ class Order extends Base
$whe[] = ['status', '>', 0];
}
if ($user_id) {
$user_id = $user_id - 1260;
$whe[] = ['user_id', '=', $user_id];
$whe1[] = ['user_id', '=', $user_id];
}
@ -549,7 +545,6 @@ class Order extends Base
$whe = [['status', '=', 1], ['kd_is', '=', 0]];
if ($user_id) {
$user_id = $user_id - 1260;
$whe[] = ['user_id', '=', $user_id];
}
if ($mobile) {
@ -642,7 +637,6 @@ class Order extends Base
$whe = [];
if ($user_id) {
$user_id = $user_id - 1260;
$whe[] = ['user_id', '=', $user_id];
}
if ($mobile) {
@ -735,7 +729,7 @@ class Order extends Base
$whe = [['status', '=', $status]];
}
if ($user_id) {
$whe[] = ['user_id', '=', $user_id - 1260];
$whe[] = ['user_id', '=', $user_id];
}
if ($mobile) {
$mobile = User::where('mobile', $mobile)->value('id');

View File

@ -40,7 +40,7 @@ class User extends Base
// 构建查询条件
$where = [];
if (!empty($param['user_id'])) {
$where[] = ['id', '=', intval($param['user_id']) - 1260];
$where[] = ['id', '=', intval($param['user_id'])];
}
if (!empty($param['mobile'])) {
$where[] = ['mobile', 'like', "%{$param['mobile']}%"];
@ -56,7 +56,7 @@ class User extends Base
$where[] = ['addtime', 'between', [strtotime($times[0]), strtotime($times[1])]];
}
if (!empty($param['pid'])) {
$where[] = ['pid', '=', intval($param['pid']) - 1260];
$where[] = ['pid', '=', intval($param['pid'])];
}
$field = '*';
$order = 'id desc';
@ -489,7 +489,7 @@ class User extends Base
$addtime = trim(input('get.addtime'));
$uid = trim(input('get.uid'));
if (!empty($uid)) {
$uid = $uid - 1260;
$uid = $uid ;
$whe[] = ['id', '=', $uid];
}
if (!empty($addtime)) {
@ -734,7 +734,7 @@ class User extends Base
$whe1[] = ['addtime', '>=', strtotime($profit_date)];
}
if ($user_id) {
$user_id = $user_id - 1260;
$user_id = $user_id ;
$whe[] = ['pid', '=', $user_id];
}
//select * from ( SELECT pid,count(1) n FROM xinglanmh_shequt_test.`user` where pid>0 group by pid ) t where n>1 order by n desc LIMIT 10
@ -766,7 +766,7 @@ class User extends Base
foreach ($user_list as $user_item) {
$user_item['adddate'] = date('Y-m-d H:i:s', $user_item['addtime']);
$user_item['index'] = $u_index;
$user_item['id'] = $user_item['id'] + 1260;
$user_item_order = Order::where('user_id', '=', $user_item['id'])->where('status', '=', $user_item['id'])->count();
$user_item_price = Order::where('user_id', '=', $user_item['id'])->where('status', '=', $user_item['id'])->sum('price');
$user_item['user_item_order'] = $user_item_order;
@ -782,7 +782,7 @@ class User extends Base
}
$data[] = [
'index' => $index,
'user_id' => $pid + 1260,
'user_id' => $pid,
'invitenumber' => $item['n'],
'nickname' => $user_info['nickname'],
'headimg' => imageUrl($user_info['headimg']),

View File

@ -61,7 +61,7 @@
{volist name="list" id="vo"}
<tr>
<td>{$vo['id']}</td>
<td>{$vo['user_id']+1260}</td>
<td>{$vo['user_id']}</td>
<td>{$vo['nickname']}</td>
<td>{$vo['title']}</td>
<td>{$vo['man_price']}</td>

View File

@ -51,7 +51,7 @@
<div style="display: flex;">
<div><img src="{:imageUrl($vo['headimg'])}" alt="" width="50px" height="50px"></div>
<div style="margin-left: 10px">
<p style="color: #e91e63;font-size: 9px">UID{$vo['user_id']+1260}</p>
<p style="color: #e91e63;font-size: 9px">UID{$vo['user_id']}</p>
<p style="color: #666666ba;font-size: 9px">{$vo['mobile']}</p>
<p style="color: #666666ba;font-size: 9px">{$vo['nickname']}</p>
</div>
@ -63,7 +63,7 @@
<div><img src="{:imageUrl($vo['headimg'])}" alt="" width="50px" height="50px"></div>
<div style="margin-left: 10px">
<p style="color: #e91e63;font-size: 9px">UID{$vo['share_uid']+1260}</p>
<p style="color: #e91e63;font-size: 9px">UID{$vo['share_uid']}</p>
<p style="color: #666666ba;font-size: 9px">{$vo['share_mobile']}</p>
<p style="color: #666666ba;font-size: 9px">{$vo['share_nickname']}</p>

View File

@ -50,7 +50,7 @@
<div style="display: flex;">
<div><img src="{:imageUrl($vo['headimg'])}" alt="" width="50px" height="50px"></div>
<div style="margin-left: 10px">
<p style="color: #e91e63;font-size: 9px">UID{$vo['user_id']+1260}</p>
<p style="color: #e91e63;font-size: 9px">UID{$vo['user_id']}</p>
<p style="color: #666666ba;font-size: 9px">{$vo['mobile']}</p>
<p style="color: #666666ba;font-size: 9px">{$vo['nickname']}</p>
</div>

View File

@ -50,7 +50,7 @@
<div style="display: flex;">
<div><img src="{:imageUrl($vo['headimg'])}" alt="" width="50px" height="50px"></div>
<div style="margin-left: 10px">
<p style="color: #e91e63;font-size: 9px">UID{$vo['user_id']+1260}</p>
<p style="color: #e91e63;font-size: 9px">UID{$vo['user_id']}</p>
<p style="color: #666666ba;font-size: 9px">{$vo['mobile']}</p>
<p style="color: #666666ba;font-size: 9px">{$vo['nickname']}</p>
</div>

View File

@ -49,7 +49,7 @@
<div style="display: flex;">
<div><img src="{:imageUrl($vo['headimg'])}" alt="" width="50px" height="50px"></div>
<div style="margin-left: 10px">
<p style="color: #e91e63;font-size: 9px">UID{$vo['user_id']+1260}</p>
<p style="color: #e91e63;font-size: 9px">UID{$vo['user_id']}</p>
<p style="color: #666666ba;font-size: 9px">{$vo['mobile']}</p>
<p style="color: #666666ba;font-size: 9px">{$vo['nickname']}</p>
</div>

View File

@ -50,7 +50,7 @@
<div style="display: flex;">
<div><img src="{:imageUrl($vo['headimg'])}" alt="" width="50px" height="50px"></div>
<div style="margin-left: 10px">
<p style="color: #e91e63;font-size: 9px">UID{$vo['user_id']+1260}</p>
<p style="color: #e91e63;font-size: 9px">UID{$vo['user_id']}</p>
<p style="color: #666666ba;font-size: 9px">{$vo['mobile']}</p>
<p style="color: #666666ba;font-size: 9px">{$vo['nickname']}</p>
</div>

View File

@ -58,7 +58,7 @@
<div style="display: flex;">
<div><img src="{:imageUrl($vo['headimg'])}" alt="" width="50px" height="50px"></div>
<div style="margin-left: 10px">
<p style="color: #e91e63;font-size: 9px">UID{$vo['user_id']+1260}</p>
<p style="color: #e91e63;font-size: 9px">UID{$vo['user_id']}</p>
<p style="color: #666666ba;font-size: 9px">{$vo['mobile']}</p>
<p style="color: #666666ba;font-size: 9px">{$vo['nickname']}</p>
</div>

View File

@ -56,7 +56,7 @@
<div style="display: flex;">
<div><img src="{:imageUrl($vo['headimg'])}" alt="" width="50px" height="50px"></div>
<div style="margin-left: 10px">
<p style="color: #e91e63;font-size: 9px">UID{$vo['user_id']+1260}</p>
<p style="color: #e91e63;font-size: 9px">UID{$vo['user_id']}</p>
<p style="color: #666666ba;font-size: 9px">{$vo['mobile']}</p>
<p style="color: #666666ba;font-size: 9px">{$vo['nickname']}</p>
</div>

View File

@ -51,7 +51,7 @@
<div style="display: flex;">
<div><img src="{:imageUrl($vo['headimg'])}" alt="" width="50px" height="50px"></div>
<div style="margin-left: 10px">
<p style="color: #e91e63;font-size: 9px">UID{$vo['user_id']+1260}</p>
<p style="color: #e91e63;font-size: 9px">UID{$vo['user_id']}</p>
<p style="color: #666666ba;font-size: 9px">{$vo['mobile']}</p>
<p style="color: #666666ba;font-size: 9px">{$vo['nickname']}</p>
</div>

View File

@ -79,7 +79,7 @@
<div style="display: flex;">
<div><img src="{:imageUrl($vo['headimg'])}" alt="" width="50px" height="50px"></div>
<div style="margin-left: 10px">
<p style="color: #ff5722c2;font-size: 9px">UID{$vo['user_id']+1260}</p>
<p style="color: #ff5722c2;font-size: 9px">UID{$vo['user_id']}</p>
<p style="color: #666666ba;font-size: 9px">{$vo['mobile']}</p>
<p style="color: #666666ba;font-size: 9px">{$vo['nickname']}</p>
<p style="color: #666666ba;font-size: 8px"></p>

View File

@ -63,7 +63,7 @@
<img src="{{d.headimg}}" alt="{{d.nickname}}" class="user-avatar">
<div class="user-info">
<p class="user-detail">{{d.nickname}}</p>
<p class="user-id">UID{{d.id + 1260}}</p>
<p class="user-id">UID{{d.id}}</p>
<p class="user-detail">{{d.mobile}}</p>
</div>
</div>
@ -75,7 +75,7 @@
<div class="user-card">
<img src="{{d.pid_info.headimg}}" alt="" class="user-avatar">
<div class="user-info">
<p class="user-id">UID{{d.pid_info.id + 1260}}</p>
<p class="user-id">UID{{d.pid_info.id}}</p>
<p class="user-detail">{{d.pid_info.nickname}}</p>
</div>
</div>

View File

@ -65,7 +65,7 @@
<div style="display: flex;">
<div><img src="{:imageUrl($vo['headimg'])}" alt="" width="50px" height="50px"></div>
<div style="margin-left: 10px">
<p style="color: #e91e63;font-size: 9px">UID{$vo['id']+1260}</p>
<p style="color: #e91e63;font-size: 9px">UID{$vo['id']}</p>
<p style="color: #666666ba;font-size: 9px">{$vo['nickname']}</p>
</div>
</div>

View File

@ -59,7 +59,7 @@
<div style="display: flex;">
<div><img src="{:imageUrl($vo['headimg'])}" alt="" width="50px" height="50px"></div>
<div style="margin-left: 10px">
<p style="color: #e91e63;font-size: 9px">UID{$vo['id']+1260}</p>
<p style="color: #e91e63;font-size: 9px">UID{$vo['id']}</p>
<p style="color: #666666ba;font-size: 9px">{$vo['mobile']}</p>
<p style="color: #666666ba;font-size: 9px">{$vo['nickname']}</p>
</div>

View File

@ -835,7 +835,7 @@ class AliNotify extends Base
if($randomValue<$nowpro){
$read_goods=$value1;
Db::name('error_log')->insert([
'user_id' => $user_id+1260,
'user_id' => $user_id,
'goods_id' => $ddp_goods['id'],
'addtime' => time(),
'content'=>'支付宝付费抽奖开启概率'.$randomValue.',累计概率'.$nowpro.',本商品概率'.$value1['pro'].',本商品名称'.$value1['title'].',抽取id'.$user_id,

View File

@ -23,7 +23,7 @@ class Login extends Base
$this->uploader = new TencentCosUploader($config);
}
/**
* 微信授权
* 微信授权,登录接口
*/
public function login()
{
@ -105,7 +105,6 @@ class Login extends Base
$pid = 0;
$pid_pid = request()->param('pid', 0);
if ($pid_pid > 0) {
$pid_pid = $pid_pid - 1260;
log::info("获取推荐人id" . $pid_pid);
}
$randx = rand(1000, 9999);
@ -282,7 +281,6 @@ class Login extends Base
$pid = 0;
$pid_pid = request()->param('pid', 0);
if ($pid_pid > 0) {
$pid_pid = $pid_pid - 1260;
log::info("获取推荐人id" . $pid_pid);
}

View File

@ -46,7 +46,7 @@ class User extends Base
public function user(Request $request)
{
$user = $this->getUser();
$userinfo['ID'] = $user['id'] + 1260;
$userinfo['ID'] = $user['id'];
$userinfo['mobile_is'] = $user['mobile'] ? 1 : 0;
$userinfo['nickname'] = $user['nickname'];
$userinfo['headimg'] = imageUrl($user['headimg']);