功能:二维码推广功能
This commit is contained in:
parent
774b12516f
commit
82914b355b
Binary file not shown.
18
lover/migrations/add_invite_code_fields.sql
Normal file
18
lover/migrations/add_invite_code_fields.sql
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
-- 添加邀请码相关字段
|
||||||
|
ALTER TABLE nf_user
|
||||||
|
ADD COLUMN invite_code VARCHAR(10) UNIQUE COMMENT '我的邀请码',
|
||||||
|
ADD COLUMN invited_by VARCHAR(10) COMMENT '被谁邀请(邀请码)',
|
||||||
|
ADD COLUMN invite_count INT DEFAULT 0 COMMENT '邀请人数',
|
||||||
|
ADD COLUMN invite_reward_total DECIMAL(10,2) DEFAULT 0.00 COMMENT '邀请奖励总额';
|
||||||
|
|
||||||
|
-- 为已有用户生成邀请码(6位随机字符)
|
||||||
|
UPDATE nf_user
|
||||||
|
SET invite_code = CONCAT(
|
||||||
|
SUBSTRING('ABCDEFGHJKLMNPQRSTUVWXYZ23456789', FLOOR(1 + RAND() * 32), 1),
|
||||||
|
SUBSTRING('ABCDEFGHJKLMNPQRSTUVWXYZ23456789', FLOOR(1 + RAND() * 32), 1),
|
||||||
|
SUBSTRING('ABCDEFGHJKLMNPQRSTUVWXYZ23456789', FLOOR(1 + RAND() * 32), 1),
|
||||||
|
SUBSTRING('ABCDEFGHJKLMNPQRSTUVWXYZ23456789', FLOOR(1 + RAND() * 32), 1),
|
||||||
|
SUBSTRING('ABCDEFGHJKLMNPQRSTUVWXYZ23456789', FLOOR(1 + RAND() * 32), 1),
|
||||||
|
SUBSTRING('ABCDEFGHJKLMNPQRSTUVWXYZ23456789', FLOOR(1 + RAND() * 32), 1)
|
||||||
|
)
|
||||||
|
WHERE invite_code IS NULL;
|
||||||
|
|
@ -31,6 +31,11 @@ class User(Base):
|
||||||
owned_outfit_ids = Column(JSON)
|
owned_outfit_ids = Column(JSON)
|
||||||
owned_voice_ids = Column(JSON)
|
owned_voice_ids = Column(JSON)
|
||||||
vip_endtime = Column(BigInteger, default=0)
|
vip_endtime = Column(BigInteger, default=0)
|
||||||
|
# 邀请码相关
|
||||||
|
invite_code = Column(String(10), unique=True)
|
||||||
|
invited_by = Column(String(10))
|
||||||
|
invite_count = Column(Integer, default=0)
|
||||||
|
invite_reward_total = Column(DECIMAL(10, 2), default=0.00)
|
||||||
|
|
||||||
|
|
||||||
class VoiceLibrary(Base):
|
class VoiceLibrary(Base):
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -492,3 +492,144 @@ def save_cloned_voice(
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
db.rollback()
|
db.rollback()
|
||||||
raise HTTPException(status_code=500, detail=f"保存失败: {str(e)}")
|
raise HTTPException(status_code=500, detail=f"保存失败: {str(e)}")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# ===== 邀请码相关 =====
|
||||||
|
|
||||||
|
class InviteInfoResponse(BaseModel):
|
||||||
|
invite_code: str
|
||||||
|
invite_count: int
|
||||||
|
invite_reward_total: float
|
||||||
|
invite_url: str
|
||||||
|
|
||||||
|
model_config = ConfigDict(from_attributes=True)
|
||||||
|
|
||||||
|
|
||||||
|
class InviteRewardRequest(BaseModel):
|
||||||
|
invite_code: str
|
||||||
|
|
||||||
|
model_config = ConfigDict(from_attributes=True)
|
||||||
|
|
||||||
|
|
||||||
|
def _generate_invite_code() -> str:
|
||||||
|
"""生成6位邀请码(不含易混淆字符)"""
|
||||||
|
import random
|
||||||
|
import string
|
||||||
|
chars = 'ABCDEFGHJKLMNPQRSTUVWXYZ23456789' # 去掉 0O1I 等易混淆字符
|
||||||
|
return ''.join(random.choice(chars) for _ in range(6))
|
||||||
|
|
||||||
|
|
||||||
|
@router.get("/invite/info", response_model=ApiResponse[InviteInfoResponse])
|
||||||
|
def get_invite_info(
|
||||||
|
db: Session = Depends(get_db),
|
||||||
|
user: AuthedUser = Depends(get_current_user),
|
||||||
|
):
|
||||||
|
"""
|
||||||
|
获取用户的邀请信息
|
||||||
|
"""
|
||||||
|
user_row = db.query(User).filter(User.id == user.id).first()
|
||||||
|
if not user_row:
|
||||||
|
raise HTTPException(status_code=404, detail="用户不存在")
|
||||||
|
|
||||||
|
# 如果没有邀请码,生成一个
|
||||||
|
if not user_row.invite_code:
|
||||||
|
while True:
|
||||||
|
code = _generate_invite_code()
|
||||||
|
# 检查是否重复
|
||||||
|
existing = db.query(User).filter(User.invite_code == code).first()
|
||||||
|
if not existing:
|
||||||
|
user_row.invite_code = code
|
||||||
|
db.add(user_row)
|
||||||
|
db.flush()
|
||||||
|
break
|
||||||
|
|
||||||
|
# 生成邀请链接(这里使用简单的格式,实际可以是 H5 页面链接)
|
||||||
|
invite_url = f"https://your-domain.com/register?invite={user_row.invite_code}"
|
||||||
|
|
||||||
|
return success_response(
|
||||||
|
InviteInfoResponse(
|
||||||
|
invite_code=user_row.invite_code,
|
||||||
|
invite_count=user_row.invite_count or 0,
|
||||||
|
invite_reward_total=float(user_row.invite_reward_total or 0),
|
||||||
|
invite_url=invite_url
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@router.post("/invite/apply", response_model=ApiResponse[dict])
|
||||||
|
def apply_invite_code(
|
||||||
|
payload: InviteRewardRequest,
|
||||||
|
db: Session = Depends(get_db),
|
||||||
|
user: AuthedUser = Depends(get_current_user),
|
||||||
|
):
|
||||||
|
"""
|
||||||
|
新用户使用邀请码(注册后调用)
|
||||||
|
"""
|
||||||
|
user_row = db.query(User).filter(User.id == user.id).with_for_update().first()
|
||||||
|
if not user_row:
|
||||||
|
raise HTTPException(status_code=404, detail="用户不存在")
|
||||||
|
|
||||||
|
# 检查是否已经使用过邀请码
|
||||||
|
if user_row.invited_by:
|
||||||
|
raise HTTPException(status_code=400, detail="您已经使用过邀请码")
|
||||||
|
|
||||||
|
# 不能使用自己的邀请码
|
||||||
|
if user_row.invite_code == payload.invite_code:
|
||||||
|
raise HTTPException(status_code=400, detail="不能使用自己的邀请码")
|
||||||
|
|
||||||
|
# 查找邀请人
|
||||||
|
inviter = db.query(User).filter(User.invite_code == payload.invite_code).with_for_update().first()
|
||||||
|
if not inviter:
|
||||||
|
raise HTTPException(status_code=404, detail="邀请码不存在")
|
||||||
|
|
||||||
|
# 奖励金额配置
|
||||||
|
INVITER_REWARD = 10.00 # 邀请人获得10金币
|
||||||
|
INVITEE_REWARD = 5.00 # 被邀请人获得5金币
|
||||||
|
|
||||||
|
# 给邀请人发放奖励
|
||||||
|
inviter.money = float(inviter.money or 0) + INVITER_REWARD
|
||||||
|
inviter.invite_count = (inviter.invite_count or 0) + 1
|
||||||
|
inviter.invite_reward_total = float(inviter.invite_reward_total or 0) + INVITER_REWARD
|
||||||
|
db.add(inviter)
|
||||||
|
|
||||||
|
# 记录邀请人的金币日志
|
||||||
|
db.add(
|
||||||
|
UserMoneyLog(
|
||||||
|
user_id=inviter.id,
|
||||||
|
money=Decimal(str(INVITER_REWARD)),
|
||||||
|
before=Decimal(str(float(inviter.money) - INVITER_REWARD)),
|
||||||
|
after=Decimal(str(inviter.money)),
|
||||||
|
memo=f"邀请新用户奖励",
|
||||||
|
createtime=int(time.time()),
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
# 给被邀请人发放奖励
|
||||||
|
user_row.money = float(user_row.money or 0) + INVITEE_REWARD
|
||||||
|
user_row.invited_by = payload.invite_code
|
||||||
|
db.add(user_row)
|
||||||
|
|
||||||
|
# 记录被邀请人的金币日志
|
||||||
|
db.add(
|
||||||
|
UserMoneyLog(
|
||||||
|
user_id=user.id,
|
||||||
|
money=Decimal(str(INVITEE_REWARD)),
|
||||||
|
before=Decimal(str(float(user_row.money) - INVITEE_REWARD)),
|
||||||
|
after=Decimal(str(user_row.money)),
|
||||||
|
memo=f"使用邀请码奖励",
|
||||||
|
createtime=int(time.time()),
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
try:
|
||||||
|
db.flush()
|
||||||
|
except IntegrityError:
|
||||||
|
db.rollback()
|
||||||
|
raise HTTPException(status_code=409, detail="操作失败,请重试")
|
||||||
|
|
||||||
|
return success_response({
|
||||||
|
"message": f"邀请码使用成功!您获得了{INVITEE_REWARD}金币",
|
||||||
|
"reward": INVITEE_REWARD,
|
||||||
|
"balance": float(user_row.money)
|
||||||
|
})
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,19 @@
|
||||||
<view v-if="isDev" class="dev-tip">
|
<view v-if="isDev" class="dev-tip">
|
||||||
<text>🔧 开发模式:只需输入手机号即可登录</text>
|
<text>🔧 开发模式:只需输入手机号即可登录</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
<!-- 邀请码输入框 -->
|
||||||
|
<view class="list_content">
|
||||||
|
<view class="list_module fa">
|
||||||
|
<image src="/static/images/login_code.png" mode="widthFix"></image>
|
||||||
|
<input class="f1" v-model="inviteCode" placeholder="邀请码(选填)"
|
||||||
|
placeholder-class="list_input" />
|
||||||
|
</view>
|
||||||
|
<view v-if="inviteCode" class="invite-tip">
|
||||||
|
<text>✅ 使用邀请码可获得5金币奖励</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
<!-- <view class="list_content">
|
<!-- <view class="list_content">
|
||||||
<view class="list_module fa">
|
<view class="list_module fa">
|
||||||
<image src="/static/images/login_code.png" mode="widthFix"></image>
|
<image src="/static/images/login_code.png" mode="widthFix"></image>
|
||||||
|
|
@ -132,6 +145,8 @@
|
||||||
},
|
},
|
||||||
dataLogin: [],
|
dataLogin: [],
|
||||||
selectStats: false,
|
selectStats: false,
|
||||||
|
inviteCode: '', // 邀请码
|
||||||
|
baseURLPy: 'http://127.0.0.1:8000',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
@ -139,8 +154,18 @@
|
||||||
return this.form.mobile.trim() !== '' && this.form.password.trim() !== '';
|
return this.form.mobile.trim() !== '' && this.form.password.trim() !== '';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad(options) {
|
||||||
console.log('登录页面',)
|
console.log('登录页面')
|
||||||
|
|
||||||
|
// 从 URL 参数获取邀请码
|
||||||
|
if (options && options.invite) {
|
||||||
|
this.inviteCode = options.invite;
|
||||||
|
uni.showToast({
|
||||||
|
title: '已自动填入邀请码',
|
||||||
|
icon: 'success'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// #ifdef MP
|
// #ifdef MP
|
||||||
this.Login()
|
this.Login()
|
||||||
// #endif
|
// #endif
|
||||||
|
|
@ -380,11 +405,17 @@
|
||||||
})
|
})
|
||||||
uni.setStorageSync("token", res.data.userinfo.token)
|
uni.setStorageSync("token", res.data.userinfo.token)
|
||||||
uni.setStorageSync("userinfo", res.data.userinfo)
|
uni.setStorageSync("userinfo", res.data.userinfo)
|
||||||
setTimeout(() => {
|
|
||||||
uni.navigateTo({
|
// 如果有邀请码,尝试使用
|
||||||
url: '/pages/index/index'
|
if (this.inviteCode && this.inviteCode.trim()) {
|
||||||
})
|
this.applyInviteCode();
|
||||||
}, 1000);
|
} else {
|
||||||
|
setTimeout(() => {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/index/index'
|
||||||
|
})
|
||||||
|
}, 1000);
|
||||||
|
}
|
||||||
} else if (res.code == 0) {
|
} else if (res.code == 0) {
|
||||||
console.log('提示错误信息')
|
console.log('提示错误信息')
|
||||||
console.log(res)
|
console.log(res)
|
||||||
|
|
@ -396,6 +427,44 @@
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 使用邀请码
|
||||||
|
applyInviteCode() {
|
||||||
|
uni.request({
|
||||||
|
url: this.baseURLPy + '/config/invite/apply',
|
||||||
|
method: 'POST',
|
||||||
|
header: {
|
||||||
|
'Content-Type': 'application/json',
|
||||||
|
'token': uni.getStorageSync("token") || "",
|
||||||
|
},
|
||||||
|
data: {
|
||||||
|
invite_code: this.inviteCode
|
||||||
|
},
|
||||||
|
success: (res) => {
|
||||||
|
if (res.data.code === 1) {
|
||||||
|
uni.showToast({
|
||||||
|
title: res.data.data.message,
|
||||||
|
icon: 'success'
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
// 邀请码使用失败,不影响登录
|
||||||
|
console.log('邀请码使用失败:', res.data.message);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
fail: (err) => {
|
||||||
|
console.error('邀请码请求失败:', err);
|
||||||
|
},
|
||||||
|
complete: () => {
|
||||||
|
// 无论成功失败,都跳转到首页
|
||||||
|
setTimeout(() => {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/index/index'
|
||||||
|
})
|
||||||
|
}, 1500);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
selectClick() {
|
selectClick() {
|
||||||
if (this.selectStats) {
|
if (this.selectStats) {
|
||||||
this.selectStats = false
|
this.selectStats = false
|
||||||
|
|
@ -528,6 +597,19 @@
|
||||||
color: #E65100;
|
color: #E65100;
|
||||||
line-height: 40rpx;
|
line-height: 40rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 邀请码提示 */
|
||||||
|
.invite-tip {
|
||||||
|
margin-top: 10rpx;
|
||||||
|
padding: 10rpx 20rpx;
|
||||||
|
background: #E8F5E9;
|
||||||
|
border-radius: 8rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.invite-tip text {
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #2E7D32;
|
||||||
|
}
|
||||||
|
|
||||||
.list_module {
|
.list_module {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
|
||||||
|
|
@ -1,254 +1,103 @@
|
||||||
<template>
|
<template>
|
||||||
<view>
|
<view>
|
||||||
<view class="body">
|
<view class="body">
|
||||||
<view class="list">
|
<view class="invite-info">
|
||||||
<view class="poster-container">
|
<view class="invite-code-box">
|
||||||
<canvas canvas-id="posterCanvas" class="poster-canvas" :style="{ width: canvasWidth + 'px', height: canvasHeight + 'px' }"></canvas>
|
<text class="label">我的邀请码</text>
|
||||||
|
<text class="code">{{ inviteCode }}</text>
|
||||||
|
<view class="copy-btn" @click="copyInviteCode">复制</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="invite-stats">
|
||||||
|
<view class="stat-item">
|
||||||
|
<text class="stat-value">{{ inviteCount }}</text>
|
||||||
|
<text class="stat-label">邀请人数</text>
|
||||||
|
</view>
|
||||||
|
<view class="stat-item">
|
||||||
|
<text class="stat-value">{{ inviteReward }}</text>
|
||||||
|
<text class="stat-label">累计奖励</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<!-- 二维码显示 -->
|
||||||
|
<view class="qrcode-container">
|
||||||
|
<view class="qrcode-title">扫描二维码获取邀请码</view>
|
||||||
|
<image
|
||||||
|
class="qrcode-image"
|
||||||
|
:src="qrCodeUrl"
|
||||||
|
mode="aspectFit"
|
||||||
|
@longpress="saveQRCode">
|
||||||
|
</image>
|
||||||
|
<view class="qrcode-tip">长按保存二维码分享给好友</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view class="invite-rule">
|
||||||
|
<text class="rule-title">邀请规则</text>
|
||||||
|
<text class="rule-item">• 分享邀请码或二维码给好友</text>
|
||||||
|
<text class="rule-item">• 好友扫码或输入邀请码注册</text>
|
||||||
|
<text class="rule-item">• 您获得10金币,好友获得5金币</text>
|
||||||
|
<text class="rule-item">• 金币可用于购买会员、音色等</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
|
||||||
|
|
||||||
} from '@/utils/api.js'
|
|
||||||
import notHave from '@/components/not-have.vue';
|
|
||||||
import topSafety from '@/components/top-safety.vue';
|
|
||||||
import tabBar from '@/components/tab-bar.vue';
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
|
||||||
notHave,
|
|
||||||
topSafety,
|
|
||||||
tabBar,
|
|
||||||
},
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
canvasWidth: 300,
|
inviteCode: '',
|
||||||
canvasHeight: 600, // 减小画布高度
|
inviteCount: 0,
|
||||||
posterImageUrl: '',
|
inviteReward: 0,
|
||||||
// 示例数据,实际应从用户信息获取
|
qrCodeUrl: '',
|
||||||
userInfo: {
|
baseURLPy: 'http://127.0.0.1:8000',
|
||||||
name: '154****9090', // 原来的手机号改为用户名
|
|
||||||
phone: '邀请您加入聊天', // 原来的姓名改为邀请文案
|
|
||||||
avatar: '/static/images/avatar.png' // 头像路径
|
|
||||||
},
|
|
||||||
topImageRatio: 0, // 顶部图片的宽高比
|
|
||||||
topImageLocalPath: '', // 顶部图片本地路径
|
|
||||||
qrCodeLocalPath: '' // 二维码图片本地路径
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
this.initCanvas();
|
this.getInviteInfo();
|
||||||
},
|
|
||||||
onReady() {
|
|
||||||
// 页面准备完成后自动生成海报
|
|
||||||
setTimeout(() => {
|
|
||||||
this.downloadImages().then(() => {
|
|
||||||
this.generatePoster();
|
|
||||||
}).catch(err => {
|
|
||||||
console.error('下载图片失败:', err);
|
|
||||||
uni.hideLoading();
|
|
||||||
uni.showToast({
|
|
||||||
title: '图片加载失败',
|
|
||||||
icon: 'none'
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}, 500);
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
initCanvas() {
|
getInviteInfo() {
|
||||||
// 获取设备信息来自适应不同屏幕
|
uni.request({
|
||||||
const systemInfo = uni.getSystemInfoSync();
|
url: this.baseURLPy + '/config/invite/info',
|
||||||
// 设置canvas宽度为屏幕宽度的90%,减少左右边距
|
method: 'GET',
|
||||||
this.canvasWidth = systemInfo.windowWidth * 0.9;
|
header: {
|
||||||
// 设置canvas高度
|
'token': uni.getStorageSync("token") || "",
|
||||||
this.canvasHeight = this.canvasWidth * 2.0; // 减小长宽比到1.8:1
|
},
|
||||||
|
success: (res) => {
|
||||||
|
if (res.data.code === 1) {
|
||||||
|
const data = res.data.data;
|
||||||
|
this.inviteCode = data.invite_code;
|
||||||
|
this.inviteCount = data.invite_count;
|
||||||
|
this.inviteReward = data.invite_reward_total;
|
||||||
|
|
||||||
|
// 生成二维码 URL
|
||||||
|
this.qrCodeUrl = `https://api.qrserver.com/v1/create-qr-code/?size=400x400&data=${encodeURIComponent(this.inviteCode)}`;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
fail: (err) => {
|
||||||
|
console.error('获取邀请信息失败:', err);
|
||||||
|
}
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
// 下载线上图片到本地临时文件
|
copyInviteCode() {
|
||||||
async downloadImages() {
|
uni.setClipboardData({
|
||||||
return new Promise((resolve, reject) => {
|
data: this.inviteCode,
|
||||||
uni.showLoading({
|
success: () => {
|
||||||
title: '图片加载中...'
|
uni.showToast({
|
||||||
});
|
title: '邀请码已复制',
|
||||||
|
icon: 'success'
|
||||||
// #ifdef H5
|
|
||||||
// H5 环境直接使用图片 URL,不下载
|
|
||||||
const topImageUrl = 'https://nvlovers.oss-cn-qingdao.aliyuncs.com/uploads/20251226/cb61a8209c59166e5a56e9c5c470e8f1.png';
|
|
||||||
const qrCodeUrl = 'https://nvlovers.oss-cn-qingdao.aliyuncs.com/uploads/20251226/54a0da02080e49dbf2d6412791c58281.png';
|
|
||||||
|
|
||||||
this.topImageLocalPath = topImageUrl;
|
|
||||||
this.qrCodeLocalPath = qrCodeUrl;
|
|
||||||
|
|
||||||
// 获取顶部图片信息
|
|
||||||
uni.getImageInfo({
|
|
||||||
src: topImageUrl,
|
|
||||||
success: (res) => {
|
|
||||||
this.topImageRatio = res.width / res.height;
|
|
||||||
resolve();
|
|
||||||
},
|
|
||||||
fail: (err) => {
|
|
||||||
console.error('获取图片信息失败:', err);
|
|
||||||
this.topImageRatio = 3;
|
|
||||||
resolve();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
// #endif
|
|
||||||
|
|
||||||
// #ifndef H5
|
|
||||||
// 非 H5 环境下载图片
|
|
||||||
Promise.all([
|
|
||||||
this.downloadImage('https://nvlovers.oss-cn-qingdao.aliyuncs.com/uploads/20251226/cb61a8209c59166e5a56e9c5c470e8f1.png'),
|
|
||||||
this.downloadImage('https://nvlovers.oss-cn-qingdao.aliyuncs.com/uploads/20251226/54a0da02080e49dbf2d6412791c58281.png')
|
|
||||||
]).then(([topImagePath, qrCodePath]) => {
|
|
||||||
this.topImageLocalPath = topImagePath;
|
|
||||||
this.qrCodeLocalPath = qrCodePath;
|
|
||||||
|
|
||||||
// 获取顶部图片信息
|
|
||||||
uni.getImageInfo({
|
|
||||||
src: topImagePath,
|
|
||||||
success: (res) => {
|
|
||||||
this.topImageRatio = res.width / res.height;
|
|
||||||
resolve();
|
|
||||||
},
|
|
||||||
fail: (err) => {
|
|
||||||
console.error('获取图片信息失败:', err);
|
|
||||||
this.topImageRatio = 3;
|
|
||||||
resolve();
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}).catch(err => {
|
}
|
||||||
console.error('下载图片失败:', err);
|
|
||||||
reject(err);
|
|
||||||
});
|
|
||||||
// #endif
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
// 下载单个图片
|
saveQRCode() {
|
||||||
downloadImage(url) {
|
uni.showModal({
|
||||||
return new Promise((resolve, reject) => {
|
title: '提示',
|
||||||
uni.downloadFile({
|
content: '长按二维码可保存到相册',
|
||||||
url: url,
|
showCancel: false
|
||||||
success: (res) => {
|
|
||||||
if (res.statusCode === 200) {
|
|
||||||
resolve(res.tempFilePath);
|
|
||||||
} else {
|
|
||||||
reject(new Error(`下载失败: ${res.statusCode}`));
|
|
||||||
}
|
|
||||||
},
|
|
||||||
fail: (err) => {
|
|
||||||
reject(err);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
},
|
|
||||||
|
|
||||||
// 绘制圆角矩形的方法
|
|
||||||
drawRoundedRect(ctx, x, y, width, height, radius) {
|
|
||||||
ctx.beginPath();
|
|
||||||
ctx.moveTo(x + radius, y);
|
|
||||||
ctx.lineTo(x + width - radius, y);
|
|
||||||
ctx.quadraticCurveTo(x + width, y, x + width, y + radius);
|
|
||||||
ctx.lineTo(x + width, y + height - radius);
|
|
||||||
ctx.quadraticCurveTo(x + width, y + height, x + width - radius, y + height);
|
|
||||||
ctx.lineTo(x + radius, y + height);
|
|
||||||
ctx.quadraticCurveTo(x, y + height, x, y + height - radius);
|
|
||||||
ctx.lineTo(x, y + radius);
|
|
||||||
ctx.quadraticCurveTo(x, y, x + radius, y);
|
|
||||||
ctx.closePath();
|
|
||||||
ctx.fill();
|
|
||||||
},
|
|
||||||
|
|
||||||
generatePoster() {
|
|
||||||
uni.showLoading({
|
|
||||||
title: '海报生成中...'
|
|
||||||
});
|
|
||||||
|
|
||||||
const ctx = uni.createCanvasContext('posterCanvas', this);
|
|
||||||
|
|
||||||
// 清空画布
|
|
||||||
ctx.clearRect(0, 0, this.canvasWidth, this.canvasHeight);
|
|
||||||
|
|
||||||
// 绘制圆角背景
|
|
||||||
ctx.setFillStyle('#ffffff');
|
|
||||||
this.drawRoundedRect(ctx, 0, 0, this.canvasWidth, this.canvasHeight, 20);
|
|
||||||
|
|
||||||
// 计算居中位置
|
|
||||||
const centerX = this.canvasWidth / 2;
|
|
||||||
|
|
||||||
// 绘制顶部图片,宽度与canvas一致,高度自适应
|
|
||||||
const topImageWidth = this.canvasWidth;
|
|
||||||
// 根据图片原始宽高比计算高度
|
|
||||||
const topImageHeight = this.topImageRatio > 0 ? topImageWidth / this.topImageRatio : topImageWidth * 0.3;
|
|
||||||
const topImageX = 0;
|
|
||||||
const topImageY = 0; // 紧贴顶部
|
|
||||||
ctx.drawImage(this.topImageLocalPath, topImageX, topImageY, topImageWidth, topImageHeight);
|
|
||||||
|
|
||||||
// 绘制二维码,减小尺寸
|
|
||||||
const qrCodeSize = this.canvasWidth * 0.5; // 减小二维码尺寸
|
|
||||||
const qrCodeY = topImageHeight + 30; // 减少间距
|
|
||||||
const qrCodeX = (this.canvasWidth - qrCodeSize) / 2;
|
|
||||||
ctx.drawImage(this.qrCodeLocalPath, qrCodeX, qrCodeY, qrCodeSize, qrCodeSize);
|
|
||||||
|
|
||||||
// 绘制用户信息区域
|
|
||||||
const userInfoY = qrCodeY + qrCodeSize + 10;
|
|
||||||
const avatarSize = this.canvasWidth * 0.15;
|
|
||||||
|
|
||||||
// 计算头像和文字的整体高度,用于居中对齐
|
|
||||||
const textHeight = 40; // 文字区域高度估算
|
|
||||||
const totalHeight = Math.max(avatarSize, textHeight);
|
|
||||||
const avatarY = userInfoY + (totalHeight - avatarSize) / 2;
|
|
||||||
const textY = userInfoY + (totalHeight - textHeight) / 2;
|
|
||||||
|
|
||||||
// 头像居中对齐
|
|
||||||
const avatarX = (this.canvasWidth - (avatarSize + this.canvasWidth * 0.4)) / 2;
|
|
||||||
|
|
||||||
// 绘制头像
|
|
||||||
ctx.save();
|
|
||||||
ctx.beginPath();
|
|
||||||
ctx.arc(avatarX + avatarSize/2, avatarY + avatarSize/2, avatarSize/2, 0, 2 * Math.PI);
|
|
||||||
ctx.clip();
|
|
||||||
ctx.drawImage(this.userInfo.avatar, avatarX, avatarY, avatarSize, avatarSize);
|
|
||||||
ctx.restore();
|
|
||||||
|
|
||||||
// 绘制姓名和手机号(现在是手机号和邀请文案),与头像垂直居中对齐
|
|
||||||
const textAreaX = avatarX + avatarSize + 20;
|
|
||||||
ctx.setTextAlign('left');
|
|
||||||
ctx.setFontSize(18);
|
|
||||||
ctx.setFillStyle('#333333');
|
|
||||||
ctx.fillText(this.userInfo.name, textAreaX, textY + 20); // 垂直居中显示手机号
|
|
||||||
|
|
||||||
ctx.setFontSize(14);
|
|
||||||
ctx.setFillStyle('#999999');
|
|
||||||
ctx.fillText(this.userInfo.phone, textAreaX, textY + 45); // 垂直居中显示邀请文案
|
|
||||||
|
|
||||||
// 绘制完成,导出图片
|
|
||||||
ctx.draw(false, () => {
|
|
||||||
// 延迟执行以确保绘制完成
|
|
||||||
setTimeout(() => {
|
|
||||||
uni.canvasToTempFilePath({
|
|
||||||
canvasId: 'posterCanvas',
|
|
||||||
success: (res) => {
|
|
||||||
this.posterImageUrl = res.tempFilePath;
|
|
||||||
uni.hideLoading();
|
|
||||||
uni.showToast({
|
|
||||||
title: '海报生成成功',
|
|
||||||
icon: 'success'
|
|
||||||
});
|
|
||||||
},
|
|
||||||
fail: (err) => {
|
|
||||||
console.error('生成海报失败:', err);
|
|
||||||
uni.hideLoading();
|
|
||||||
uni.showToast({
|
|
||||||
title: '海报生成失败',
|
|
||||||
icon: 'none'
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}, this);
|
|
||||||
}, 3000);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -257,30 +106,125 @@
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
page {
|
page {
|
||||||
background: #FFFFFF;
|
background: #F6F8FA;
|
||||||
}
|
}
|
||||||
</style>
|
|
||||||
<style>
|
|
||||||
.body {
|
.body {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding: 0 20rpx; /* 减少左右padding */
|
padding: 20rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.list {
|
/* 邀请信息卡片 */
|
||||||
position: relative;
|
.invite-info {
|
||||||
margin: 20rpx 0 0 0;
|
background: linear-gradient(135deg, #9F47FF 0%, #0053FA 100%);
|
||||||
}
|
border-radius: 20rpx;
|
||||||
|
padding: 40rpx;
|
||||||
.poster-container {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
margin-bottom: 30rpx;
|
margin-bottom: 30rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.poster-canvas {
|
.invite-code-box {
|
||||||
background-color: #f5f5f5;
|
display: flex;
|
||||||
/* 移除之前的圆角设置,因为现在在canvas中绘制 */
|
align-items: center;
|
||||||
box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.1);
|
justify-content: space-between;
|
||||||
|
background: rgba(255, 255, 255, 0.2);
|
||||||
|
border-radius: 12rpx;
|
||||||
|
padding: 20rpx 30rpx;
|
||||||
|
margin-bottom: 30rpx;
|
||||||
}
|
}
|
||||||
</style>
|
|
||||||
|
.invite-code-box .label {
|
||||||
|
color: #FFFFFF;
|
||||||
|
font-size: 28rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.invite-code-box .code {
|
||||||
|
color: #FFFFFF;
|
||||||
|
font-size: 36rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
letter-spacing: 4rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.copy-btn {
|
||||||
|
background: #FFFFFF;
|
||||||
|
color: #9F47FF;
|
||||||
|
padding: 10rpx 30rpx;
|
||||||
|
border-radius: 30rpx;
|
||||||
|
font-size: 26rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.invite-stats {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-around;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat-item {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat-value {
|
||||||
|
color: #FFFFFF;
|
||||||
|
font-size: 40rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 10rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat-label {
|
||||||
|
color: rgba(255, 255, 255, 0.8);
|
||||||
|
font-size: 24rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 二维码容器 */
|
||||||
|
.qrcode-container {
|
||||||
|
background: #FFFFFF;
|
||||||
|
border-radius: 20rpx;
|
||||||
|
padding: 40rpx;
|
||||||
|
margin-bottom: 30rpx;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.qrcode-title {
|
||||||
|
font-size: 32rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333;
|
||||||
|
margin-bottom: 30rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.qrcode-image {
|
||||||
|
width: 400rpx;
|
||||||
|
height: 400rpx;
|
||||||
|
border: 2rpx solid #E0E0E0;
|
||||||
|
border-radius: 10rpx;
|
||||||
|
margin-bottom: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.qrcode-tip {
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 邀请规则 */
|
||||||
|
.invite-rule {
|
||||||
|
background: #FFFFFF;
|
||||||
|
border-radius: 20rpx;
|
||||||
|
padding: 30rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rule-title {
|
||||||
|
font-size: 32rpx;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #333;
|
||||||
|
display: block;
|
||||||
|
margin-bottom: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rule-item {
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #666;
|
||||||
|
line-height: 50rpx;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -23702,3 +23702,958 @@ File
|
||||||
[ sql ] [ SQL ] SELECT SUM(intimacy) AS tp_sum FROM `nf_user_bond_log` WHERE `user_id` = 70 AND `createdate` = '2026-02-01' LIMIT 1 [ RunTime:0.000767s ]
|
[ sql ] [ SQL ] SELECT SUM(intimacy) AS tp_sum FROM `nf_user_bond_log` WHERE `user_id` = 70 AND `createdate` = '2026-02-01' LIMIT 1 [ RunTime:0.000767s ]
|
||||||
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_third` [ RunTime:0.002709s ]
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_third` [ RunTime:0.002709s ]
|
||||||
[ sql ] [ SQL ] SELECT `openid` FROM `nf_third` WHERE `user_id` = 70 AND `platform` = 'wxapp' LIMIT 1 [ RunTime:0.000820s ]
|
[ sql ] [ SQL ] SELECT `openid` FROM `nf_third` WHERE `user_id` = 70 AND `platform` = 'wxapp' LIMIT 1 [ RunTime:0.000820s ]
|
||||||
|
---------------------------------------------------------------
|
||||||
|
[ 2026-02-01T13:42:26+08:00 ] 127.0.0.1 GET 127.0.0.1:8080/api/user_basic/get_user_basic
|
||||||
|
[运行时间:0.098048s] [吞吐率:10.20req/s] [内存消耗:4,272.90kb] [文件加载:92]
|
||||||
|
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000023s ]
|
||||||
|
[ info ] [ CACHE ] INIT File
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @app_init [ RunTime:0.003957s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.003999s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_init [ RunTime:0.001287s ]
|
||||||
|
[ info ] [ LANG ] C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\thinkphp\lang\zh-cn.php
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000043s ]
|
||||||
|
[ info ] [ ROUTE ] array (
|
||||||
|
'type' => 'module',
|
||||||
|
'module' =>
|
||||||
|
array (
|
||||||
|
0 => 'api',
|
||||||
|
1 => 'user_basic',
|
||||||
|
2 => 'get_user_basic',
|
||||||
|
),
|
||||||
|
)
|
||||||
|
[ info ] [ HEADER ] array (
|
||||||
|
'token' => '2ea3606b-6fca-4ede-9151-41b8c50a3207',
|
||||||
|
'connection' => 'keep-alive',
|
||||||
|
'accept' => '*/*',
|
||||||
|
'accept-encoding' => 'gzip, deflate, zstd',
|
||||||
|
'user-agent' => 'python-requests/2.32.5',
|
||||||
|
'host' => '127.0.0.1:8080',
|
||||||
|
'content-length' => '',
|
||||||
|
'content-type' => '',
|
||||||
|
)
|
||||||
|
[ info ] [ PARAM ] array (
|
||||||
|
)
|
||||||
|
[ info ] [ LANG ] C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\public/../application/api\lang\zh-cn.php
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.001837s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @module_init [ RunTime:0.000538s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\third\Third @module_init [ RunTime:0.000463s ]
|
||||||
|
[ info ] [ TOKEN ] INIT Mysql
|
||||||
|
[ info ] [ DB ] INIT mysql
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @upload_config_init [ RunTime:0.000793s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\epay\Epay @action_begin [ RunTime:0.001840s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\third\Third @action_begin [ RunTime:0.000047s ]
|
||||||
|
[ info ] [ RUN ] app\api\controller\UserBasic->get_user_basic[ C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\application\api\controller\UserBasic.php ]
|
||||||
|
[ info ] [ LOG ] INIT File
|
||||||
|
[ sql ] [ DB ] CONNECT:[ UseTime:0.001513s ] mysql:host=127.0.0.1;port=3306;dbname=fastadmin;charset=utf8mb4
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_token` [ RunTime:0.001587s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user_token` WHERE `token` = 'add92c4de35c0dd27585fa5979c6db3b7834766e' LIMIT 1 [ RunTime:0.000536s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user` [ RunTime:0.002528s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user` WHERE `id` = 70 LIMIT 1 [ RunTime:0.000676s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user_token` WHERE `token` = 'add92c4de35c0dd27585fa5979c6db3b7834766e' LIMIT 1 [ RunTime:0.000482s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_level` [ RunTime:0.001597s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user_level` WHERE `level` = '3' LIMIT 1 [ RunTime:0.000446s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_bond_config` [ RunTime:0.001416s ]
|
||||||
|
[ sql ] [ SQL ] SELECT SUM(upper) AS tp_sum FROM `nf_user_bond_config` LIMIT 1 [ RunTime:0.000424s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_bond_log` [ RunTime:0.001552s ]
|
||||||
|
[ sql ] [ SQL ] SELECT SUM(intimacy) AS tp_sum FROM `nf_user_bond_log` WHERE `user_id` = 70 AND `createdate` = '2026-02-01' LIMIT 1 [ RunTime:0.000868s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_third` [ RunTime:0.001819s ]
|
||||||
|
[ sql ] [ SQL ] SELECT `openid` FROM `nf_third` WHERE `user_id` = 70 AND `platform` = 'wxapp' LIMIT 1 [ RunTime:0.000726s ]
|
||||||
|
---------------------------------------------------------------
|
||||||
|
[ 2026-02-01T13:44:53+08:00 ] 127.0.0.1 GET 127.0.0.1:8080/api/user_basic/get_user_basic
|
||||||
|
[运行时间:0.096217s] [吞吐率:10.39req/s] [内存消耗:4,272.90kb] [文件加载:92]
|
||||||
|
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000022s ]
|
||||||
|
[ info ] [ CACHE ] INIT File
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @app_init [ RunTime:0.003987s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.004037s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_init [ RunTime:0.001693s ]
|
||||||
|
[ info ] [ LANG ] C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\thinkphp\lang\zh-cn.php
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000047s ]
|
||||||
|
[ info ] [ ROUTE ] array (
|
||||||
|
'type' => 'module',
|
||||||
|
'module' =>
|
||||||
|
array (
|
||||||
|
0 => 'api',
|
||||||
|
1 => 'user_basic',
|
||||||
|
2 => 'get_user_basic',
|
||||||
|
),
|
||||||
|
)
|
||||||
|
[ info ] [ HEADER ] array (
|
||||||
|
'token' => '2ea3606b-6fca-4ede-9151-41b8c50a3207',
|
||||||
|
'connection' => 'keep-alive',
|
||||||
|
'accept' => '*/*',
|
||||||
|
'accept-encoding' => 'gzip, deflate, zstd',
|
||||||
|
'user-agent' => 'python-requests/2.32.5',
|
||||||
|
'host' => '127.0.0.1:8080',
|
||||||
|
'content-length' => '',
|
||||||
|
'content-type' => '',
|
||||||
|
)
|
||||||
|
[ info ] [ PARAM ] array (
|
||||||
|
)
|
||||||
|
[ info ] [ LANG ] C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\public/../application/api\lang\zh-cn.php
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.002805s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @module_init [ RunTime:0.000968s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\third\Third @module_init [ RunTime:0.000712s ]
|
||||||
|
[ info ] [ TOKEN ] INIT Mysql
|
||||||
|
[ info ] [ DB ] INIT mysql
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @upload_config_init [ RunTime:0.000961s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\epay\Epay @action_begin [ RunTime:0.001980s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\third\Third @action_begin [ RunTime:0.000049s ]
|
||||||
|
[ info ] [ RUN ] app\api\controller\UserBasic->get_user_basic[ C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\application\api\controller\UserBasic.php ]
|
||||||
|
[ info ] [ LOG ] INIT File
|
||||||
|
[ sql ] [ DB ] CONNECT:[ UseTime:0.001264s ] mysql:host=127.0.0.1;port=3306;dbname=fastadmin;charset=utf8mb4
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_token` [ RunTime:0.001614s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user_token` WHERE `token` = 'add92c4de35c0dd27585fa5979c6db3b7834766e' LIMIT 1 [ RunTime:0.000442s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user` [ RunTime:0.003209s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user` WHERE `id` = 70 LIMIT 1 [ RunTime:0.000807s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user_token` WHERE `token` = 'add92c4de35c0dd27585fa5979c6db3b7834766e' LIMIT 1 [ RunTime:0.000790s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_level` [ RunTime:0.001823s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user_level` WHERE `level` = '3' LIMIT 1 [ RunTime:0.000483s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_bond_config` [ RunTime:0.001454s ]
|
||||||
|
[ sql ] [ SQL ] SELECT SUM(upper) AS tp_sum FROM `nf_user_bond_config` LIMIT 1 [ RunTime:0.000411s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_bond_log` [ RunTime:0.001376s ]
|
||||||
|
[ sql ] [ SQL ] SELECT SUM(intimacy) AS tp_sum FROM `nf_user_bond_log` WHERE `user_id` = 70 AND `createdate` = '2026-02-01' LIMIT 1 [ RunTime:0.000570s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_third` [ RunTime:0.001510s ]
|
||||||
|
[ sql ] [ SQL ] SELECT `openid` FROM `nf_third` WHERE `user_id` = 70 AND `platform` = 'wxapp' LIMIT 1 [ RunTime:0.000573s ]
|
||||||
|
---------------------------------------------------------------
|
||||||
|
[ 2026-02-01T13:45:03+08:00 ] 127.0.0.1 GET 127.0.0.1:8080/api/user_basic/get_user_basic
|
||||||
|
[运行时间:0.093047s] [吞吐率:10.75req/s] [内存消耗:4,272.90kb] [文件加载:92]
|
||||||
|
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000024s ]
|
||||||
|
[ info ] [ CACHE ] INIT File
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @app_init [ RunTime:0.004204s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.004243s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_init [ RunTime:0.001284s ]
|
||||||
|
[ info ] [ LANG ] C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\thinkphp\lang\zh-cn.php
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000027s ]
|
||||||
|
[ info ] [ ROUTE ] array (
|
||||||
|
'type' => 'module',
|
||||||
|
'module' =>
|
||||||
|
array (
|
||||||
|
0 => 'api',
|
||||||
|
1 => 'user_basic',
|
||||||
|
2 => 'get_user_basic',
|
||||||
|
),
|
||||||
|
)
|
||||||
|
[ info ] [ HEADER ] array (
|
||||||
|
'token' => '2ea3606b-6fca-4ede-9151-41b8c50a3207',
|
||||||
|
'connection' => 'keep-alive',
|
||||||
|
'accept' => '*/*',
|
||||||
|
'accept-encoding' => 'gzip, deflate, zstd',
|
||||||
|
'user-agent' => 'python-requests/2.32.5',
|
||||||
|
'host' => '127.0.0.1:8080',
|
||||||
|
'content-length' => '',
|
||||||
|
'content-type' => '',
|
||||||
|
)
|
||||||
|
[ info ] [ PARAM ] array (
|
||||||
|
)
|
||||||
|
[ info ] [ LANG ] C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\public/../application/api\lang\zh-cn.php
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.001774s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @module_init [ RunTime:0.000528s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\third\Third @module_init [ RunTime:0.000470s ]
|
||||||
|
[ info ] [ TOKEN ] INIT Mysql
|
||||||
|
[ info ] [ DB ] INIT mysql
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @upload_config_init [ RunTime:0.000856s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\epay\Epay @action_begin [ RunTime:0.001948s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\third\Third @action_begin [ RunTime:0.000049s ]
|
||||||
|
[ info ] [ RUN ] app\api\controller\UserBasic->get_user_basic[ C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\application\api\controller\UserBasic.php ]
|
||||||
|
[ info ] [ LOG ] INIT File
|
||||||
|
[ sql ] [ DB ] CONNECT:[ UseTime:0.001218s ] mysql:host=127.0.0.1;port=3306;dbname=fastadmin;charset=utf8mb4
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_token` [ RunTime:0.001594s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user_token` WHERE `token` = 'add92c4de35c0dd27585fa5979c6db3b7834766e' LIMIT 1 [ RunTime:0.000455s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user` [ RunTime:0.002061s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user` WHERE `id` = 70 LIMIT 1 [ RunTime:0.000695s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user_token` WHERE `token` = 'add92c4de35c0dd27585fa5979c6db3b7834766e' LIMIT 1 [ RunTime:0.000642s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_level` [ RunTime:0.001622s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user_level` WHERE `level` = '3' LIMIT 1 [ RunTime:0.000458s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_bond_config` [ RunTime:0.001421s ]
|
||||||
|
[ sql ] [ SQL ] SELECT SUM(upper) AS tp_sum FROM `nf_user_bond_config` LIMIT 1 [ RunTime:0.000413s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_bond_log` [ RunTime:0.001404s ]
|
||||||
|
[ sql ] [ SQL ] SELECT SUM(intimacy) AS tp_sum FROM `nf_user_bond_log` WHERE `user_id` = 70 AND `createdate` = '2026-02-01' LIMIT 1 [ RunTime:0.000490s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_third` [ RunTime:0.001477s ]
|
||||||
|
[ sql ] [ SQL ] SELECT `openid` FROM `nf_third` WHERE `user_id` = 70 AND `platform` = 'wxapp' LIMIT 1 [ RunTime:0.000538s ]
|
||||||
|
---------------------------------------------------------------
|
||||||
|
[ 2026-02-01T13:53:18+08:00 ] 127.0.0.1 GET 127.0.0.1:8080/api/user_basic/get_user_basic
|
||||||
|
[运行时间:0.092474s] [吞吐率:10.81req/s] [内存消耗:4,272.90kb] [文件加载:92]
|
||||||
|
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000026s ]
|
||||||
|
[ info ] [ CACHE ] INIT File
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @app_init [ RunTime:0.005344s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.005387s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_init [ RunTime:0.001164s ]
|
||||||
|
[ info ] [ LANG ] C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\thinkphp\lang\zh-cn.php
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000026s ]
|
||||||
|
[ info ] [ ROUTE ] array (
|
||||||
|
'type' => 'module',
|
||||||
|
'module' =>
|
||||||
|
array (
|
||||||
|
0 => 'api',
|
||||||
|
1 => 'user_basic',
|
||||||
|
2 => 'get_user_basic',
|
||||||
|
),
|
||||||
|
)
|
||||||
|
[ info ] [ HEADER ] array (
|
||||||
|
'token' => '2ea3606b-6fca-4ede-9151-41b8c50a3207',
|
||||||
|
'connection' => 'keep-alive',
|
||||||
|
'accept' => '*/*',
|
||||||
|
'accept-encoding' => 'gzip, deflate, zstd',
|
||||||
|
'user-agent' => 'python-requests/2.32.5',
|
||||||
|
'host' => '127.0.0.1:8080',
|
||||||
|
'content-length' => '',
|
||||||
|
'content-type' => '',
|
||||||
|
)
|
||||||
|
[ info ] [ PARAM ] array (
|
||||||
|
)
|
||||||
|
[ info ] [ LANG ] C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\public/../application/api\lang\zh-cn.php
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.001604s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @module_init [ RunTime:0.000457s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\third\Third @module_init [ RunTime:0.000391s ]
|
||||||
|
[ info ] [ TOKEN ] INIT Mysql
|
||||||
|
[ info ] [ DB ] INIT mysql
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @upload_config_init [ RunTime:0.000796s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\epay\Epay @action_begin [ RunTime:0.001834s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\third\Third @action_begin [ RunTime:0.000044s ]
|
||||||
|
[ info ] [ RUN ] app\api\controller\UserBasic->get_user_basic[ C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\application\api\controller\UserBasic.php ]
|
||||||
|
[ info ] [ LOG ] INIT File
|
||||||
|
[ sql ] [ DB ] CONNECT:[ UseTime:0.001152s ] mysql:host=127.0.0.1;port=3306;dbname=fastadmin;charset=utf8mb4
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_token` [ RunTime:0.001507s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user_token` WHERE `token` = 'add92c4de35c0dd27585fa5979c6db3b7834766e' LIMIT 1 [ RunTime:0.000399s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user` [ RunTime:0.001999s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user` WHERE `id` = 70 LIMIT 1 [ RunTime:0.000578s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user_token` WHERE `token` = 'add92c4de35c0dd27585fa5979c6db3b7834766e' LIMIT 1 [ RunTime:0.000405s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_level` [ RunTime:0.001497s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user_level` WHERE `level` = '3' LIMIT 1 [ RunTime:0.000428s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_bond_config` [ RunTime:0.001293s ]
|
||||||
|
[ sql ] [ SQL ] SELECT SUM(upper) AS tp_sum FROM `nf_user_bond_config` LIMIT 1 [ RunTime:0.000410s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_bond_log` [ RunTime:0.001261s ]
|
||||||
|
[ sql ] [ SQL ] SELECT SUM(intimacy) AS tp_sum FROM `nf_user_bond_log` WHERE `user_id` = 70 AND `createdate` = '2026-02-01' LIMIT 1 [ RunTime:0.000468s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_third` [ RunTime:0.001316s ]
|
||||||
|
[ sql ] [ SQL ] SELECT `openid` FROM `nf_third` WHERE `user_id` = 70 AND `platform` = 'wxapp' LIMIT 1 [ RunTime:0.000494s ]
|
||||||
|
---------------------------------------------------------------
|
||||||
|
[ 2026-02-01T13:54:38+08:00 ] 127.0.0.1 GET 127.0.0.1:8080/api/user_basic/get_user_basic
|
||||||
|
[运行时间:0.094500s] [吞吐率:10.58req/s] [内存消耗:4,272.90kb] [文件加载:92]
|
||||||
|
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000041s ]
|
||||||
|
[ info ] [ CACHE ] INIT File
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @app_init [ RunTime:0.003441s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.003473s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_init [ RunTime:0.001095s ]
|
||||||
|
[ info ] [ LANG ] C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\thinkphp\lang\zh-cn.php
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000023s ]
|
||||||
|
[ info ] [ ROUTE ] array (
|
||||||
|
'type' => 'module',
|
||||||
|
'module' =>
|
||||||
|
array (
|
||||||
|
0 => 'api',
|
||||||
|
1 => 'user_basic',
|
||||||
|
2 => 'get_user_basic',
|
||||||
|
),
|
||||||
|
)
|
||||||
|
[ info ] [ HEADER ] array (
|
||||||
|
'token' => '2ea3606b-6fca-4ede-9151-41b8c50a3207',
|
||||||
|
'connection' => 'keep-alive',
|
||||||
|
'accept' => '*/*',
|
||||||
|
'accept-encoding' => 'gzip, deflate, zstd',
|
||||||
|
'user-agent' => 'python-requests/2.32.5',
|
||||||
|
'host' => '127.0.0.1:8080',
|
||||||
|
'content-length' => '',
|
||||||
|
'content-type' => '',
|
||||||
|
)
|
||||||
|
[ info ] [ PARAM ] array (
|
||||||
|
)
|
||||||
|
[ info ] [ LANG ] C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\public/../application/api\lang\zh-cn.php
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.001679s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @module_init [ RunTime:0.000707s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\third\Third @module_init [ RunTime:0.000617s ]
|
||||||
|
[ info ] [ TOKEN ] INIT Mysql
|
||||||
|
[ info ] [ DB ] INIT mysql
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @upload_config_init [ RunTime:0.000786s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\epay\Epay @action_begin [ RunTime:0.001746s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\third\Third @action_begin [ RunTime:0.000042s ]
|
||||||
|
[ info ] [ RUN ] app\api\controller\UserBasic->get_user_basic[ C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\application\api\controller\UserBasic.php ]
|
||||||
|
[ info ] [ LOG ] INIT File
|
||||||
|
[ sql ] [ DB ] CONNECT:[ UseTime:0.001474s ] mysql:host=127.0.0.1;port=3306;dbname=fastadmin;charset=utf8mb4
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_token` [ RunTime:0.001696s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user_token` WHERE `token` = 'add92c4de35c0dd27585fa5979c6db3b7834766e' LIMIT 1 [ RunTime:0.000546s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user` [ RunTime:0.002082s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user` WHERE `id` = 70 LIMIT 1 [ RunTime:0.000640s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user_token` WHERE `token` = 'add92c4de35c0dd27585fa5979c6db3b7834766e' LIMIT 1 [ RunTime:0.000453s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_level` [ RunTime:0.001511s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user_level` WHERE `level` = '3' LIMIT 1 [ RunTime:0.000448s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_bond_config` [ RunTime:0.001399s ]
|
||||||
|
[ sql ] [ SQL ] SELECT SUM(upper) AS tp_sum FROM `nf_user_bond_config` LIMIT 1 [ RunTime:0.000418s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_bond_log` [ RunTime:0.001374s ]
|
||||||
|
[ sql ] [ SQL ] SELECT SUM(intimacy) AS tp_sum FROM `nf_user_bond_log` WHERE `user_id` = 70 AND `createdate` = '2026-02-01' LIMIT 1 [ RunTime:0.000502s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_third` [ RunTime:0.001539s ]
|
||||||
|
[ sql ] [ SQL ] SELECT `openid` FROM `nf_third` WHERE `user_id` = 70 AND `platform` = 'wxapp' LIMIT 1 [ RunTime:0.000539s ]
|
||||||
|
---------------------------------------------------------------
|
||||||
|
[ 2026-02-01T13:56:11+08:00 ] 127.0.0.1 GET 127.0.0.1:8080/api/user_basic/get_user_basic
|
||||||
|
[运行时间:0.087075s] [吞吐率:11.48req/s] [内存消耗:4,272.90kb] [文件加载:92]
|
||||||
|
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000021s ]
|
||||||
|
[ info ] [ CACHE ] INIT File
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @app_init [ RunTime:0.004024s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.004059s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_init [ RunTime:0.001252s ]
|
||||||
|
[ info ] [ LANG ] C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\thinkphp\lang\zh-cn.php
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000025s ]
|
||||||
|
[ info ] [ ROUTE ] array (
|
||||||
|
'type' => 'module',
|
||||||
|
'module' =>
|
||||||
|
array (
|
||||||
|
0 => 'api',
|
||||||
|
1 => 'user_basic',
|
||||||
|
2 => 'get_user_basic',
|
||||||
|
),
|
||||||
|
)
|
||||||
|
[ info ] [ HEADER ] array (
|
||||||
|
'token' => '2ea3606b-6fca-4ede-9151-41b8c50a3207',
|
||||||
|
'connection' => 'keep-alive',
|
||||||
|
'accept' => '*/*',
|
||||||
|
'accept-encoding' => 'gzip, deflate, zstd',
|
||||||
|
'user-agent' => 'python-requests/2.32.5',
|
||||||
|
'host' => '127.0.0.1:8080',
|
||||||
|
'content-length' => '',
|
||||||
|
'content-type' => '',
|
||||||
|
)
|
||||||
|
[ info ] [ PARAM ] array (
|
||||||
|
)
|
||||||
|
[ info ] [ LANG ] C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\public/../application/api\lang\zh-cn.php
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.001679s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @module_init [ RunTime:0.000470s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\third\Third @module_init [ RunTime:0.000405s ]
|
||||||
|
[ info ] [ TOKEN ] INIT Mysql
|
||||||
|
[ info ] [ DB ] INIT mysql
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @upload_config_init [ RunTime:0.000791s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\epay\Epay @action_begin [ RunTime:0.001804s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\third\Third @action_begin [ RunTime:0.000044s ]
|
||||||
|
[ info ] [ RUN ] app\api\controller\UserBasic->get_user_basic[ C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\application\api\controller\UserBasic.php ]
|
||||||
|
[ info ] [ LOG ] INIT File
|
||||||
|
[ sql ] [ DB ] CONNECT:[ UseTime:0.001317s ] mysql:host=127.0.0.1;port=3306;dbname=fastadmin;charset=utf8mb4
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_token` [ RunTime:0.001658s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user_token` WHERE `token` = 'add92c4de35c0dd27585fa5979c6db3b7834766e' LIMIT 1 [ RunTime:0.000463s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user` [ RunTime:0.002229s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user` WHERE `id` = 70 LIMIT 1 [ RunTime:0.000652s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user_token` WHERE `token` = 'add92c4de35c0dd27585fa5979c6db3b7834766e' LIMIT 1 [ RunTime:0.000472s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_level` [ RunTime:0.001656s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user_level` WHERE `level` = '3' LIMIT 1 [ RunTime:0.000475s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_bond_config` [ RunTime:0.001581s ]
|
||||||
|
[ sql ] [ SQL ] SELECT SUM(upper) AS tp_sum FROM `nf_user_bond_config` LIMIT 1 [ RunTime:0.000403s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_bond_log` [ RunTime:0.001387s ]
|
||||||
|
[ sql ] [ SQL ] SELECT SUM(intimacy) AS tp_sum FROM `nf_user_bond_log` WHERE `user_id` = 70 AND `createdate` = '2026-02-01' LIMIT 1 [ RunTime:0.000514s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_third` [ RunTime:0.001682s ]
|
||||||
|
[ sql ] [ SQL ] SELECT `openid` FROM `nf_third` WHERE `user_id` = 70 AND `platform` = 'wxapp' LIMIT 1 [ RunTime:0.000620s ]
|
||||||
|
---------------------------------------------------------------
|
||||||
|
[ 2026-02-01T13:57:04+08:00 ] 127.0.0.1 GET 127.0.0.1:8080/api/user_basic/get_user_basic
|
||||||
|
[运行时间:0.108261s] [吞吐率:9.24req/s] [内存消耗:4,272.90kb] [文件加载:92]
|
||||||
|
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000022s ]
|
||||||
|
[ info ] [ CACHE ] INIT File
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @app_init [ RunTime:0.003786s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.003821s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_init [ RunTime:0.001196s ]
|
||||||
|
[ info ] [ LANG ] C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\thinkphp\lang\zh-cn.php
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000025s ]
|
||||||
|
[ info ] [ ROUTE ] array (
|
||||||
|
'type' => 'module',
|
||||||
|
'module' =>
|
||||||
|
array (
|
||||||
|
0 => 'api',
|
||||||
|
1 => 'user_basic',
|
||||||
|
2 => 'get_user_basic',
|
||||||
|
),
|
||||||
|
)
|
||||||
|
[ info ] [ HEADER ] array (
|
||||||
|
'token' => '2ea3606b-6fca-4ede-9151-41b8c50a3207',
|
||||||
|
'connection' => 'keep-alive',
|
||||||
|
'accept' => '*/*',
|
||||||
|
'accept-encoding' => 'gzip, deflate, zstd',
|
||||||
|
'user-agent' => 'python-requests/2.32.5',
|
||||||
|
'host' => '127.0.0.1:8080',
|
||||||
|
'content-length' => '',
|
||||||
|
'content-type' => '',
|
||||||
|
)
|
||||||
|
[ info ] [ PARAM ] array (
|
||||||
|
)
|
||||||
|
[ info ] [ LANG ] C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\public/../application/api\lang\zh-cn.php
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.001816s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @module_init [ RunTime:0.000506s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\third\Third @module_init [ RunTime:0.000438s ]
|
||||||
|
[ info ] [ TOKEN ] INIT Mysql
|
||||||
|
[ info ] [ DB ] INIT mysql
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @upload_config_init [ RunTime:0.000874s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\epay\Epay @action_begin [ RunTime:0.001903s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\third\Third @action_begin [ RunTime:0.000049s ]
|
||||||
|
[ info ] [ RUN ] app\api\controller\UserBasic->get_user_basic[ C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\application\api\controller\UserBasic.php ]
|
||||||
|
[ info ] [ LOG ] INIT File
|
||||||
|
[ sql ] [ DB ] CONNECT:[ UseTime:0.019978s ] mysql:host=127.0.0.1;port=3306;dbname=fastadmin;charset=utf8mb4
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_token` [ RunTime:0.001753s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user_token` WHERE `token` = 'add92c4de35c0dd27585fa5979c6db3b7834766e' LIMIT 1 [ RunTime:0.000809s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user` [ RunTime:0.002108s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user` WHERE `id` = 70 LIMIT 1 [ RunTime:0.000622s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user_token` WHERE `token` = 'add92c4de35c0dd27585fa5979c6db3b7834766e' LIMIT 1 [ RunTime:0.000502s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_level` [ RunTime:0.001609s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user_level` WHERE `level` = '3' LIMIT 1 [ RunTime:0.000445s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_bond_config` [ RunTime:0.001461s ]
|
||||||
|
[ sql ] [ SQL ] SELECT SUM(upper) AS tp_sum FROM `nf_user_bond_config` LIMIT 1 [ RunTime:0.000405s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_bond_log` [ RunTime:0.001308s ]
|
||||||
|
[ sql ] [ SQL ] SELECT SUM(intimacy) AS tp_sum FROM `nf_user_bond_log` WHERE `user_id` = 70 AND `createdate` = '2026-02-01' LIMIT 1 [ RunTime:0.000517s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_third` [ RunTime:0.001432s ]
|
||||||
|
[ sql ] [ SQL ] SELECT `openid` FROM `nf_third` WHERE `user_id` = 70 AND `platform` = 'wxapp' LIMIT 1 [ RunTime:0.000510s ]
|
||||||
|
---------------------------------------------------------------
|
||||||
|
[ 2026-02-01T13:57:06+08:00 ] 127.0.0.1 GET 127.0.0.1:8080/api/user_basic/get_user_basic
|
||||||
|
[运行时间:0.122882s] [吞吐率:8.14req/s] [内存消耗:4,272.90kb] [文件加载:92]
|
||||||
|
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000025s ]
|
||||||
|
[ info ] [ CACHE ] INIT File
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @app_init [ RunTime:0.003857s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.003892s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_init [ RunTime:0.001199s ]
|
||||||
|
[ info ] [ LANG ] C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\thinkphp\lang\zh-cn.php
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000027s ]
|
||||||
|
[ info ] [ ROUTE ] array (
|
||||||
|
'type' => 'module',
|
||||||
|
'module' =>
|
||||||
|
array (
|
||||||
|
0 => 'api',
|
||||||
|
1 => 'user_basic',
|
||||||
|
2 => 'get_user_basic',
|
||||||
|
),
|
||||||
|
)
|
||||||
|
[ info ] [ HEADER ] array (
|
||||||
|
'token' => '2ea3606b-6fca-4ede-9151-41b8c50a3207',
|
||||||
|
'connection' => 'keep-alive',
|
||||||
|
'accept' => '*/*',
|
||||||
|
'accept-encoding' => 'gzip, deflate, zstd',
|
||||||
|
'user-agent' => 'python-requests/2.32.5',
|
||||||
|
'host' => '127.0.0.1:8080',
|
||||||
|
'content-length' => '',
|
||||||
|
'content-type' => '',
|
||||||
|
)
|
||||||
|
[ info ] [ PARAM ] array (
|
||||||
|
)
|
||||||
|
[ info ] [ LANG ] C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\public/../application/api\lang\zh-cn.php
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.001832s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @module_init [ RunTime:0.000509s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\third\Third @module_init [ RunTime:0.000477s ]
|
||||||
|
[ info ] [ TOKEN ] INIT Mysql
|
||||||
|
[ info ] [ DB ] INIT mysql
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @upload_config_init [ RunTime:0.000861s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\epay\Epay @action_begin [ RunTime:0.001910s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\third\Third @action_begin [ RunTime:0.000048s ]
|
||||||
|
[ info ] [ RUN ] app\api\controller\UserBasic->get_user_basic[ C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\application\api\controller\UserBasic.php ]
|
||||||
|
[ info ] [ LOG ] INIT File
|
||||||
|
[ sql ] [ DB ] CONNECT:[ UseTime:0.024925s ] mysql:host=127.0.0.1;port=3306;dbname=fastadmin;charset=utf8mb4
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_token` [ RunTime:0.001728s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user_token` WHERE `token` = 'add92c4de35c0dd27585fa5979c6db3b7834766e' LIMIT 1 [ RunTime:0.000440s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user` [ RunTime:0.003292s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user` WHERE `id` = 70 LIMIT 1 [ RunTime:0.000979s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user_token` WHERE `token` = 'add92c4de35c0dd27585fa5979c6db3b7834766e' LIMIT 1 [ RunTime:0.000843s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_level` [ RunTime:0.001576s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user_level` WHERE `level` = '3' LIMIT 1 [ RunTime:0.000440s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_bond_config` [ RunTime:0.001408s ]
|
||||||
|
[ sql ] [ SQL ] SELECT SUM(upper) AS tp_sum FROM `nf_user_bond_config` LIMIT 1 [ RunTime:0.000391s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_bond_log` [ RunTime:0.001276s ]
|
||||||
|
[ sql ] [ SQL ] SELECT SUM(intimacy) AS tp_sum FROM `nf_user_bond_log` WHERE `user_id` = 70 AND `createdate` = '2026-02-01' LIMIT 1 [ RunTime:0.000464s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_third` [ RunTime:0.001395s ]
|
||||||
|
[ sql ] [ SQL ] SELECT `openid` FROM `nf_third` WHERE `user_id` = 70 AND `platform` = 'wxapp' LIMIT 1 [ RunTime:0.000888s ]
|
||||||
|
---------------------------------------------------------------
|
||||||
|
[ 2026-02-01T13:57:59+08:00 ] 127.0.0.1 GET 127.0.0.1:8080/api/user_basic/get_user_basic
|
||||||
|
[运行时间:0.089207s] [吞吐率:11.21req/s] [内存消耗:4,272.90kb] [文件加载:92]
|
||||||
|
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000021s ]
|
||||||
|
[ info ] [ CACHE ] INIT File
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @app_init [ RunTime:0.003763s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.003798s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_init [ RunTime:0.001191s ]
|
||||||
|
[ info ] [ LANG ] C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\thinkphp\lang\zh-cn.php
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000029s ]
|
||||||
|
[ info ] [ ROUTE ] array (
|
||||||
|
'type' => 'module',
|
||||||
|
'module' =>
|
||||||
|
array (
|
||||||
|
0 => 'api',
|
||||||
|
1 => 'user_basic',
|
||||||
|
2 => 'get_user_basic',
|
||||||
|
),
|
||||||
|
)
|
||||||
|
[ info ] [ HEADER ] array (
|
||||||
|
'token' => '2ea3606b-6fca-4ede-9151-41b8c50a3207',
|
||||||
|
'connection' => 'keep-alive',
|
||||||
|
'accept' => '*/*',
|
||||||
|
'accept-encoding' => 'gzip, deflate, zstd',
|
||||||
|
'user-agent' => 'python-requests/2.32.5',
|
||||||
|
'host' => '127.0.0.1:8080',
|
||||||
|
'content-length' => '',
|
||||||
|
'content-type' => '',
|
||||||
|
)
|
||||||
|
[ info ] [ PARAM ] array (
|
||||||
|
)
|
||||||
|
[ info ] [ LANG ] C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\public/../application/api\lang\zh-cn.php
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.001846s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @module_init [ RunTime:0.000515s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\third\Third @module_init [ RunTime:0.000446s ]
|
||||||
|
[ info ] [ TOKEN ] INIT Mysql
|
||||||
|
[ info ] [ DB ] INIT mysql
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @upload_config_init [ RunTime:0.000776s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\epay\Epay @action_begin [ RunTime:0.001766s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\third\Third @action_begin [ RunTime:0.000044s ]
|
||||||
|
[ info ] [ RUN ] app\api\controller\UserBasic->get_user_basic[ C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\application\api\controller\UserBasic.php ]
|
||||||
|
[ info ] [ LOG ] INIT File
|
||||||
|
[ sql ] [ DB ] CONNECT:[ UseTime:0.001204s ] mysql:host=127.0.0.1;port=3306;dbname=fastadmin;charset=utf8mb4
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_token` [ RunTime:0.001722s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user_token` WHERE `token` = 'add92c4de35c0dd27585fa5979c6db3b7834766e' LIMIT 1 [ RunTime:0.000535s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user` [ RunTime:0.002225s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user` WHERE `id` = 70 LIMIT 1 [ RunTime:0.000653s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user_token` WHERE `token` = 'add92c4de35c0dd27585fa5979c6db3b7834766e' LIMIT 1 [ RunTime:0.000419s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_level` [ RunTime:0.001473s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user_level` WHERE `level` = '3' LIMIT 1 [ RunTime:0.000454s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_bond_config` [ RunTime:0.001380s ]
|
||||||
|
[ sql ] [ SQL ] SELECT SUM(upper) AS tp_sum FROM `nf_user_bond_config` LIMIT 1 [ RunTime:0.000445s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_bond_log` [ RunTime:0.001281s ]
|
||||||
|
[ sql ] [ SQL ] SELECT SUM(intimacy) AS tp_sum FROM `nf_user_bond_log` WHERE `user_id` = 70 AND `createdate` = '2026-02-01' LIMIT 1 [ RunTime:0.000488s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_third` [ RunTime:0.001423s ]
|
||||||
|
[ sql ] [ SQL ] SELECT `openid` FROM `nf_third` WHERE `user_id` = 70 AND `platform` = 'wxapp' LIMIT 1 [ RunTime:0.000530s ]
|
||||||
|
---------------------------------------------------------------
|
||||||
|
[ 2026-02-01T13:59:01+08:00 ] 127.0.0.1 OPTIONS 127.0.0.1:8080/api/user_basic/get_user_basic
|
||||||
|
[运行时间:0.059643s] [吞吐率:16.77req/s] [内存消耗:2,648.82kb] [文件加载:71]
|
||||||
|
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000022s ]
|
||||||
|
[ info ] [ CACHE ] INIT File
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @app_init [ RunTime:0.003874s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.003905s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_init [ RunTime:0.001305s ]
|
||||||
|
[ info ] [ LANG ] C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\thinkphp\lang\zh-cn.php
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000025s ]
|
||||||
|
[ info ] [ ROUTE ] array (
|
||||||
|
'type' => 'module',
|
||||||
|
'module' =>
|
||||||
|
array (
|
||||||
|
0 => 'api',
|
||||||
|
1 => 'user_basic',
|
||||||
|
2 => 'get_user_basic',
|
||||||
|
),
|
||||||
|
)
|
||||||
|
[ info ] [ HEADER ] array (
|
||||||
|
'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6',
|
||||||
|
'accept-encoding' => 'gzip, deflate, br',
|
||||||
|
'referer' => 'http://localhost:5173/',
|
||||||
|
'sec-fetch-dest' => 'empty',
|
||||||
|
'sec-fetch-site' => 'cross-site',
|
||||||
|
'sec-fetch-mode' => 'cors',
|
||||||
|
'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36 Edg/100.0.1185.36',
|
||||||
|
'origin' => 'http://localhost:5173',
|
||||||
|
'access-control-request-headers' => 'authorization,sid,token,x-user-id',
|
||||||
|
'access-control-request-method' => 'GET',
|
||||||
|
'accept' => '*/*',
|
||||||
|
'cache-control' => 'no-cache',
|
||||||
|
'pragma' => 'no-cache',
|
||||||
|
'connection' => 'keep-alive',
|
||||||
|
'host' => '127.0.0.1:8080',
|
||||||
|
'content-length' => '',
|
||||||
|
'content-type' => '',
|
||||||
|
)
|
||||||
|
[ info ] [ PARAM ] array (
|
||||||
|
)
|
||||||
|
[ info ] [ LANG ] C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\public/../application/api\lang\zh-cn.php
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.001718s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @module_init [ RunTime:0.000497s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\third\Third @module_init [ RunTime:0.000436s ]
|
||||||
|
[ info ] [ LOG ] INIT File
|
||||||
|
---------------------------------------------------------------
|
||||||
|
[ 2026-02-01T13:59:01+08:00 ] 127.0.0.1 GET 127.0.0.1:8080/api/user_basic/get_user_basic
|
||||||
|
[运行时间:0.087708s] [吞吐率:11.40req/s] [内存消耗:4,272.90kb] [文件加载:92]
|
||||||
|
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000019s ]
|
||||||
|
[ info ] [ CACHE ] INIT File
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @app_init [ RunTime:0.003280s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.003312s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_init [ RunTime:0.000944s ]
|
||||||
|
[ info ] [ LANG ] C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\thinkphp\lang\zh-cn.php
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000023s ]
|
||||||
|
[ info ] [ ROUTE ] array (
|
||||||
|
'type' => 'module',
|
||||||
|
'module' =>
|
||||||
|
array (
|
||||||
|
0 => 'api',
|
||||||
|
1 => 'user_basic',
|
||||||
|
2 => 'get_user_basic',
|
||||||
|
),
|
||||||
|
)
|
||||||
|
[ info ] [ HEADER ] array (
|
||||||
|
'token' => '2ea3606b-6fca-4ede-9151-41b8c50a3207',
|
||||||
|
'connection' => 'keep-alive',
|
||||||
|
'accept' => '*/*',
|
||||||
|
'accept-encoding' => 'gzip, deflate, zstd',
|
||||||
|
'user-agent' => 'python-requests/2.32.5',
|
||||||
|
'host' => '127.0.0.1:8080',
|
||||||
|
'content-length' => '',
|
||||||
|
'content-type' => '',
|
||||||
|
)
|
||||||
|
[ info ] [ PARAM ] array (
|
||||||
|
)
|
||||||
|
[ info ] [ LANG ] C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\public/../application/api\lang\zh-cn.php
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.001473s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @module_init [ RunTime:0.000420s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\third\Third @module_init [ RunTime:0.000336s ]
|
||||||
|
[ info ] [ TOKEN ] INIT Mysql
|
||||||
|
[ info ] [ DB ] INIT mysql
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @upload_config_init [ RunTime:0.000656s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\epay\Epay @action_begin [ RunTime:0.001594s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\third\Third @action_begin [ RunTime:0.000048s ]
|
||||||
|
[ info ] [ RUN ] app\api\controller\UserBasic->get_user_basic[ C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\application\api\controller\UserBasic.php ]
|
||||||
|
[ info ] [ LOG ] INIT File
|
||||||
|
[ sql ] [ DB ] CONNECT:[ UseTime:0.014167s ] mysql:host=127.0.0.1;port=3306;dbname=fastadmin;charset=utf8mb4
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_token` [ RunTime:0.001436s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user_token` WHERE `token` = 'add92c4de35c0dd27585fa5979c6db3b7834766e' LIMIT 1 [ RunTime:0.000410s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user` [ RunTime:0.001907s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user` WHERE `id` = 70 LIMIT 1 [ RunTime:0.000592s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user_token` WHERE `token` = 'add92c4de35c0dd27585fa5979c6db3b7834766e' LIMIT 1 [ RunTime:0.000470s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_level` [ RunTime:0.001297s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user_level` WHERE `level` = '3' LIMIT 1 [ RunTime:0.000425s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_bond_config` [ RunTime:0.001344s ]
|
||||||
|
[ sql ] [ SQL ] SELECT SUM(upper) AS tp_sum FROM `nf_user_bond_config` LIMIT 1 [ RunTime:0.000383s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_bond_log` [ RunTime:0.001271s ]
|
||||||
|
[ sql ] [ SQL ] SELECT SUM(intimacy) AS tp_sum FROM `nf_user_bond_log` WHERE `user_id` = 70 AND `createdate` = '2026-02-01' LIMIT 1 [ RunTime:0.000640s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_third` [ RunTime:0.001524s ]
|
||||||
|
[ sql ] [ SQL ] SELECT `openid` FROM `nf_third` WHERE `user_id` = 70 AND `platform` = 'wxapp' LIMIT 1 [ RunTime:0.000567s ]
|
||||||
|
---------------------------------------------------------------
|
||||||
|
[ 2026-02-01T13:59:01+08:00 ] 127.0.0.1 GET 127.0.0.1:8080/api/user_basic/get_user_basic
|
||||||
|
[运行时间:0.103710s] [吞吐率:9.64req/s] [内存消耗:4,272.90kb] [文件加载:92]
|
||||||
|
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000016s ]
|
||||||
|
[ info ] [ CACHE ] INIT File
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @app_init [ RunTime:0.002702s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.002728s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_init [ RunTime:0.000749s ]
|
||||||
|
[ info ] [ LANG ] C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\thinkphp\lang\zh-cn.php
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000021s ]
|
||||||
|
[ info ] [ ROUTE ] array (
|
||||||
|
'type' => 'module',
|
||||||
|
'module' =>
|
||||||
|
array (
|
||||||
|
0 => 'api',
|
||||||
|
1 => 'user_basic',
|
||||||
|
2 => 'get_user_basic',
|
||||||
|
),
|
||||||
|
)
|
||||||
|
[ info ] [ HEADER ] array (
|
||||||
|
'token' => '2ea3606b-6fca-4ede-9151-41b8c50a3207',
|
||||||
|
'connection' => 'keep-alive',
|
||||||
|
'accept' => '*/*',
|
||||||
|
'accept-encoding' => 'gzip, deflate, zstd',
|
||||||
|
'user-agent' => 'python-requests/2.32.5',
|
||||||
|
'host' => '127.0.0.1:8080',
|
||||||
|
'content-length' => '',
|
||||||
|
'content-type' => '',
|
||||||
|
)
|
||||||
|
[ info ] [ PARAM ] array (
|
||||||
|
)
|
||||||
|
[ info ] [ LANG ] C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\public/../application/api\lang\zh-cn.php
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.001303s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @module_init [ RunTime:0.000378s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\third\Third @module_init [ RunTime:0.000307s ]
|
||||||
|
[ info ] [ TOKEN ] INIT Mysql
|
||||||
|
[ info ] [ DB ] INIT mysql
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @upload_config_init [ RunTime:0.001178s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\epay\Epay @action_begin [ RunTime:0.002987s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\third\Third @action_begin [ RunTime:0.000090s ]
|
||||||
|
[ info ] [ RUN ] app\api\controller\UserBasic->get_user_basic[ C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\application\api\controller\UserBasic.php ]
|
||||||
|
[ info ] [ LOG ] INIT File
|
||||||
|
[ sql ] [ DB ] CONNECT:[ UseTime:0.020502s ] mysql:host=127.0.0.1;port=3306;dbname=fastadmin;charset=utf8mb4
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_token` [ RunTime:0.001610s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user_token` WHERE `token` = 'add92c4de35c0dd27585fa5979c6db3b7834766e' LIMIT 1 [ RunTime:0.000684s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user` [ RunTime:0.002424s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user` WHERE `id` = 70 LIMIT 1 [ RunTime:0.000919s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user_token` WHERE `token` = 'add92c4de35c0dd27585fa5979c6db3b7834766e' LIMIT 1 [ RunTime:0.000882s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_level` [ RunTime:0.002769s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user_level` WHERE `level` = '3' LIMIT 1 [ RunTime:0.000890s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_bond_config` [ RunTime:0.002156s ]
|
||||||
|
[ sql ] [ SQL ] SELECT SUM(upper) AS tp_sum FROM `nf_user_bond_config` LIMIT 1 [ RunTime:0.000507s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_bond_log` [ RunTime:0.002126s ]
|
||||||
|
[ sql ] [ SQL ] SELECT SUM(intimacy) AS tp_sum FROM `nf_user_bond_log` WHERE `user_id` = 70 AND `createdate` = '2026-02-01' LIMIT 1 [ RunTime:0.000891s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_third` [ RunTime:0.002648s ]
|
||||||
|
[ sql ] [ SQL ] SELECT `openid` FROM `nf_third` WHERE `user_id` = 70 AND `platform` = 'wxapp' LIMIT 1 [ RunTime:0.001013s ]
|
||||||
|
---------------------------------------------------------------
|
||||||
|
[ 2026-02-01T13:59:01+08:00 ] 127.0.0.1 GET 127.0.0.1:8080/api/user_basic/get_user_basic
|
||||||
|
[运行时间:0.182108s] [吞吐率:5.49req/s] [内存消耗:4,280.89kb] [文件加载:92]
|
||||||
|
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000015s ]
|
||||||
|
[ info ] [ CACHE ] INIT File
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @app_init [ RunTime:0.002824s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.002852s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_init [ RunTime:0.000799s ]
|
||||||
|
[ info ] [ LANG ] C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\thinkphp\lang\zh-cn.php
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000021s ]
|
||||||
|
[ info ] [ ROUTE ] array (
|
||||||
|
'type' => 'module',
|
||||||
|
'module' =>
|
||||||
|
array (
|
||||||
|
0 => 'api',
|
||||||
|
1 => 'user_basic',
|
||||||
|
2 => 'get_user_basic',
|
||||||
|
),
|
||||||
|
)
|
||||||
|
[ info ] [ HEADER ] array (
|
||||||
|
'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6',
|
||||||
|
'accept-encoding' => 'gzip, deflate, br',
|
||||||
|
'referer' => 'http://localhost:5173/',
|
||||||
|
'sec-fetch-dest' => 'empty',
|
||||||
|
'sec-fetch-mode' => 'cors',
|
||||||
|
'sec-fetch-site' => 'cross-site',
|
||||||
|
'origin' => 'http://localhost:5173',
|
||||||
|
'accept' => '*/*',
|
||||||
|
'sec-ch-ua-platform' => '"Windows"',
|
||||||
|
'x-user-id' => '84',
|
||||||
|
'token' => '2ea3606b-6fca-4ede-9151-41b8c50a3207',
|
||||||
|
'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36 Edg/100.0.1185.36',
|
||||||
|
'authorization' => 'Bearer 2ea3606b-6fca-4ede-9151-41b8c50a3207',
|
||||||
|
'sec-ch-ua-mobile' => '?0',
|
||||||
|
'sid' => '2',
|
||||||
|
'sec-ch-ua' => '" Not A;Brand";v="99", "Chromium";v="100", "Microsoft Edge";v="100"',
|
||||||
|
'cache-control' => 'no-cache',
|
||||||
|
'pragma' => 'no-cache',
|
||||||
|
'connection' => 'keep-alive',
|
||||||
|
'host' => '127.0.0.1:8080',
|
||||||
|
'content-length' => '',
|
||||||
|
'content-type' => '',
|
||||||
|
)
|
||||||
|
[ info ] [ PARAM ] array (
|
||||||
|
)
|
||||||
|
[ info ] [ LANG ] C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\public/../application/api\lang\zh-cn.php
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.001420s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @module_init [ RunTime:0.000403s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\third\Third @module_init [ RunTime:0.000333s ]
|
||||||
|
[ info ] [ TOKEN ] INIT Mysql
|
||||||
|
[ info ] [ DB ] INIT mysql
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @upload_config_init [ RunTime:0.000655s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\epay\Epay @action_begin [ RunTime:0.001652s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\third\Third @action_begin [ RunTime:0.000049s ]
|
||||||
|
[ info ] [ RUN ] app\api\controller\UserBasic->get_user_basic[ C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\application\api\controller\UserBasic.php ]
|
||||||
|
[ info ] [ LOG ] INIT File
|
||||||
|
[ sql ] [ DB ] CONNECT:[ UseTime:0.021271s ] mysql:host=127.0.0.1;port=3306;dbname=fastadmin;charset=utf8mb4
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_token` [ RunTime:0.001492s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user_token` WHERE `token` = 'add92c4de35c0dd27585fa5979c6db3b7834766e' LIMIT 1 [ RunTime:0.000681s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user` [ RunTime:0.001905s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user` WHERE `id` = 70 LIMIT 1 [ RunTime:0.000563s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user_token` WHERE `token` = 'add92c4de35c0dd27585fa5979c6db3b7834766e' LIMIT 1 [ RunTime:0.000453s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_level` [ RunTime:0.001343s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user_level` WHERE `level` = '3' LIMIT 1 [ RunTime:0.000458s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_bond_config` [ RunTime:0.001275s ]
|
||||||
|
[ sql ] [ SQL ] SELECT SUM(upper) AS tp_sum FROM `nf_user_bond_config` LIMIT 1 [ RunTime:0.000400s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_bond_log` [ RunTime:0.001219s ]
|
||||||
|
[ sql ] [ SQL ] SELECT SUM(intimacy) AS tp_sum FROM `nf_user_bond_log` WHERE `user_id` = 70 AND `createdate` = '2026-02-01' LIMIT 1 [ RunTime:0.000458s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_third` [ RunTime:0.001503s ]
|
||||||
|
[ sql ] [ SQL ] SELECT `openid` FROM `nf_third` WHERE `user_id` = 70 AND `platform` = 'wxapp' LIMIT 1 [ RunTime:0.000546s ]
|
||||||
|
---------------------------------------------------------------
|
||||||
|
[ 2026-02-01T13:59:04+08:00 ] 127.0.0.1 OPTIONS 127.0.0.1:8080/api/user_basic/get_hobbies
|
||||||
|
[运行时间:0.045996s] [吞吐率:21.74req/s] [内存消耗:2,648.73kb] [文件加载:71]
|
||||||
|
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000022s ]
|
||||||
|
[ info ] [ CACHE ] INIT File
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @app_init [ RunTime:0.003236s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.003269s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_init [ RunTime:0.000934s ]
|
||||||
|
[ info ] [ LANG ] C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\thinkphp\lang\zh-cn.php
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000026s ]
|
||||||
|
[ info ] [ ROUTE ] array (
|
||||||
|
'type' => 'module',
|
||||||
|
'module' =>
|
||||||
|
array (
|
||||||
|
0 => 'api',
|
||||||
|
1 => 'user_basic',
|
||||||
|
2 => 'get_hobbies',
|
||||||
|
),
|
||||||
|
)
|
||||||
|
[ info ] [ HEADER ] array (
|
||||||
|
'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6',
|
||||||
|
'accept-encoding' => 'gzip, deflate, br',
|
||||||
|
'referer' => 'http://localhost:5173/',
|
||||||
|
'sec-fetch-dest' => 'empty',
|
||||||
|
'sec-fetch-site' => 'cross-site',
|
||||||
|
'sec-fetch-mode' => 'cors',
|
||||||
|
'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36 Edg/100.0.1185.36',
|
||||||
|
'origin' => 'http://localhost:5173',
|
||||||
|
'access-control-request-headers' => 'authorization,sid,token,x-user-id',
|
||||||
|
'access-control-request-method' => 'GET',
|
||||||
|
'accept' => '*/*',
|
||||||
|
'cache-control' => 'no-cache',
|
||||||
|
'pragma' => 'no-cache',
|
||||||
|
'connection' => 'keep-alive',
|
||||||
|
'host' => '127.0.0.1:8080',
|
||||||
|
'content-length' => '',
|
||||||
|
'content-type' => '',
|
||||||
|
)
|
||||||
|
[ info ] [ PARAM ] array (
|
||||||
|
)
|
||||||
|
[ info ] [ LANG ] C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\public/../application/api\lang\zh-cn.php
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.001507s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @module_init [ RunTime:0.000431s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\third\Third @module_init [ RunTime:0.000356s ]
|
||||||
|
[ info ] [ LOG ] INIT File
|
||||||
|
---------------------------------------------------------------
|
||||||
|
[ 2026-02-01T13:59:04+08:00 ] 127.0.0.1 OPTIONS 127.0.0.1:8080/api/user_basic/get_user_basic
|
||||||
|
[运行时间:0.045721s] [吞吐率:21.87req/s] [内存消耗:2,648.82kb] [文件加载:71]
|
||||||
|
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000020s ]
|
||||||
|
[ info ] [ CACHE ] INIT File
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @app_init [ RunTime:0.003255s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.003292s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_init [ RunTime:0.000942s ]
|
||||||
|
[ info ] [ LANG ] C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\thinkphp\lang\zh-cn.php
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000026s ]
|
||||||
|
[ info ] [ ROUTE ] array (
|
||||||
|
'type' => 'module',
|
||||||
|
'module' =>
|
||||||
|
array (
|
||||||
|
0 => 'api',
|
||||||
|
1 => 'user_basic',
|
||||||
|
2 => 'get_user_basic',
|
||||||
|
),
|
||||||
|
)
|
||||||
|
[ info ] [ HEADER ] array (
|
||||||
|
'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6',
|
||||||
|
'accept-encoding' => 'gzip, deflate, br',
|
||||||
|
'referer' => 'http://localhost:5173/',
|
||||||
|
'sec-fetch-dest' => 'empty',
|
||||||
|
'sec-fetch-site' => 'cross-site',
|
||||||
|
'sec-fetch-mode' => 'cors',
|
||||||
|
'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36 Edg/100.0.1185.36',
|
||||||
|
'origin' => 'http://localhost:5173',
|
||||||
|
'access-control-request-headers' => 'authorization,sid,token,x-user-id',
|
||||||
|
'access-control-request-method' => 'GET',
|
||||||
|
'accept' => '*/*',
|
||||||
|
'cache-control' => 'no-cache',
|
||||||
|
'pragma' => 'no-cache',
|
||||||
|
'connection' => 'keep-alive',
|
||||||
|
'host' => '127.0.0.1:8080',
|
||||||
|
'content-length' => '',
|
||||||
|
'content-type' => '',
|
||||||
|
)
|
||||||
|
[ info ] [ PARAM ] array (
|
||||||
|
)
|
||||||
|
[ info ] [ LANG ] C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\public/../application/api\lang\zh-cn.php
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.001543s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @module_init [ RunTime:0.000419s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\third\Third @module_init [ RunTime:0.000352s ]
|
||||||
|
[ info ] [ LOG ] INIT File
|
||||||
|
---------------------------------------------------------------
|
||||||
|
[ 2026-02-01T13:59:04+08:00 ] 127.0.0.1 GET 127.0.0.1:8080/api/user_basic/get_hobbies
|
||||||
|
[运行时间:0.089999s] [吞吐率:11.11req/s] [内存消耗:4,218.09kb] [文件加载:88]
|
||||||
|
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000022s ]
|
||||||
|
[ info ] [ CACHE ] INIT File
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @app_init [ RunTime:0.003102s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.003134s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_init [ RunTime:0.000873s ]
|
||||||
|
[ info ] [ LANG ] C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\thinkphp\lang\zh-cn.php
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000024s ]
|
||||||
|
[ info ] [ ROUTE ] array (
|
||||||
|
'type' => 'module',
|
||||||
|
'module' =>
|
||||||
|
array (
|
||||||
|
0 => 'api',
|
||||||
|
1 => 'user_basic',
|
||||||
|
2 => 'get_hobbies',
|
||||||
|
),
|
||||||
|
)
|
||||||
|
[ info ] [ HEADER ] array (
|
||||||
|
'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6',
|
||||||
|
'accept-encoding' => 'gzip, deflate, br',
|
||||||
|
'referer' => 'http://localhost:5173/',
|
||||||
|
'sec-fetch-dest' => 'empty',
|
||||||
|
'sec-fetch-mode' => 'cors',
|
||||||
|
'sec-fetch-site' => 'cross-site',
|
||||||
|
'origin' => 'http://localhost:5173',
|
||||||
|
'accept' => '*/*',
|
||||||
|
'sec-ch-ua-platform' => '"Windows"',
|
||||||
|
'x-user-id' => '84',
|
||||||
|
'token' => '2ea3606b-6fca-4ede-9151-41b8c50a3207',
|
||||||
|
'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36 Edg/100.0.1185.36',
|
||||||
|
'authorization' => 'Bearer 2ea3606b-6fca-4ede-9151-41b8c50a3207',
|
||||||
|
'sec-ch-ua-mobile' => '?0',
|
||||||
|
'sid' => '2',
|
||||||
|
'sec-ch-ua' => '" Not A;Brand";v="99", "Chromium";v="100", "Microsoft Edge";v="100"',
|
||||||
|
'cache-control' => 'no-cache',
|
||||||
|
'pragma' => 'no-cache',
|
||||||
|
'connection' => 'keep-alive',
|
||||||
|
'host' => '127.0.0.1:8080',
|
||||||
|
'content-length' => '',
|
||||||
|
'content-type' => '',
|
||||||
|
)
|
||||||
|
[ info ] [ PARAM ] array (
|
||||||
|
)
|
||||||
|
[ info ] [ LANG ] C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\public/../application/api\lang\zh-cn.php
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.001445s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @module_init [ RunTime:0.000421s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\third\Third @module_init [ RunTime:0.000366s ]
|
||||||
|
[ info ] [ TOKEN ] INIT Mysql
|
||||||
|
[ info ] [ DB ] INIT mysql
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @upload_config_init [ RunTime:0.000618s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\epay\Epay @action_begin [ RunTime:0.001497s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\third\Third @action_begin [ RunTime:0.000044s ]
|
||||||
|
[ info ] [ RUN ] app\api\controller\UserBasic->get_hobbies[ C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\application\api\controller\UserBasic.php ]
|
||||||
|
[ info ] [ LOG ] INIT File
|
||||||
|
[ sql ] [ DB ] CONNECT:[ UseTime:0.024096s ] mysql:host=127.0.0.1;port=3306;dbname=fastadmin;charset=utf8mb4
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_token` [ RunTime:0.001561s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user_token` WHERE `token` = 'add92c4de35c0dd27585fa5979c6db3b7834766e' LIMIT 1 [ RunTime:0.000479s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user` [ RunTime:0.001920s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user` WHERE `id` = 70 LIMIT 1 [ RunTime:0.000601s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_hobbies` [ RunTime:0.001461s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_hobbies` WHERE `user_id` = 0 AND `deletetime` IS NULL ORDER BY `weigh` DESC [ RunTime:0.000639s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_hobbies` WHERE `deletetime` IS NULL AND `user_id` = 70 ORDER BY `createtime` ASC [ RunTime:0.000489s ]
|
||||||
|
---------------------------------------------------------------
|
||||||
|
[ 2026-02-01T13:59:04+08:00 ] 127.0.0.1 GET 127.0.0.1:8080/api/user_basic/get_user_basic
|
||||||
|
[运行时间:0.083737s] [吞吐率:11.94req/s] [内存消耗:4,280.89kb] [文件加载:92]
|
||||||
|
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.000017s ]
|
||||||
|
[ info ] [ CACHE ] INIT File
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @app_init [ RunTime:0.002678s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run Closure @app_init [ RunTime:0.002704s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_init [ RunTime:0.000776s ]
|
||||||
|
[ info ] [ LANG ] C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\thinkphp\lang\zh-cn.php
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @app_dispatch [ RunTime:0.000021s ]
|
||||||
|
[ info ] [ ROUTE ] array (
|
||||||
|
'type' => 'module',
|
||||||
|
'module' =>
|
||||||
|
array (
|
||||||
|
0 => 'api',
|
||||||
|
1 => 'user_basic',
|
||||||
|
2 => 'get_user_basic',
|
||||||
|
),
|
||||||
|
)
|
||||||
|
[ info ] [ HEADER ] array (
|
||||||
|
'accept-language' => 'zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6',
|
||||||
|
'accept-encoding' => 'gzip, deflate, br',
|
||||||
|
'referer' => 'http://localhost:5173/',
|
||||||
|
'sec-fetch-dest' => 'empty',
|
||||||
|
'sec-fetch-mode' => 'cors',
|
||||||
|
'sec-fetch-site' => 'cross-site',
|
||||||
|
'origin' => 'http://localhost:5173',
|
||||||
|
'accept' => '*/*',
|
||||||
|
'sec-ch-ua-platform' => '"Windows"',
|
||||||
|
'x-user-id' => '84',
|
||||||
|
'token' => '2ea3606b-6fca-4ede-9151-41b8c50a3207',
|
||||||
|
'user-agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36 Edg/100.0.1185.36',
|
||||||
|
'authorization' => 'Bearer 2ea3606b-6fca-4ede-9151-41b8c50a3207',
|
||||||
|
'sec-ch-ua-mobile' => '?0',
|
||||||
|
'sid' => '2',
|
||||||
|
'sec-ch-ua' => '" Not A;Brand";v="99", "Chromium";v="100", "Microsoft Edge";v="100"',
|
||||||
|
'cache-control' => 'no-cache',
|
||||||
|
'pragma' => 'no-cache',
|
||||||
|
'connection' => 'keep-alive',
|
||||||
|
'host' => '127.0.0.1:8080',
|
||||||
|
'content-length' => '',
|
||||||
|
'content-type' => '',
|
||||||
|
)
|
||||||
|
[ info ] [ PARAM ] array (
|
||||||
|
)
|
||||||
|
[ info ] [ LANG ] C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\public/../application/api\lang\zh-cn.php
|
||||||
|
[ info ] [ BEHAVIOR ] Run app\common\behavior\Common @module_init [ RunTime:0.001269s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @module_init [ RunTime:0.000344s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\third\Third @module_init [ RunTime:0.000298s ]
|
||||||
|
[ info ] [ TOKEN ] INIT Mysql
|
||||||
|
[ info ] [ DB ] INIT mysql
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\alioss\Alioss @upload_config_init [ RunTime:0.000645s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\epay\Epay @action_begin [ RunTime:0.001576s ]
|
||||||
|
[ info ] [ BEHAVIOR ] Run \addons\third\Third @action_begin [ RunTime:0.000048s ]
|
||||||
|
[ info ] [ RUN ] app\api\controller\UserBasic->get_user_basic[ C:\Users\Administrator\Desktop\Project\AI_GirlFriend\xunifriend_RaeeC\application\api\controller\UserBasic.php ]
|
||||||
|
[ info ] [ LOG ] INIT File
|
||||||
|
[ sql ] [ DB ] CONNECT:[ UseTime:0.016341s ] mysql:host=127.0.0.1;port=3306;dbname=fastadmin;charset=utf8mb4
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_token` [ RunTime:0.001592s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user_token` WHERE `token` = 'add92c4de35c0dd27585fa5979c6db3b7834766e' LIMIT 1 [ RunTime:0.000457s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user` [ RunTime:0.002189s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user` WHERE `id` = 70 LIMIT 1 [ RunTime:0.000600s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user_token` WHERE `token` = 'add92c4de35c0dd27585fa5979c6db3b7834766e' LIMIT 1 [ RunTime:0.000472s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_level` [ RunTime:0.001434s ]
|
||||||
|
[ sql ] [ SQL ] SELECT * FROM `nf_user_level` WHERE `level` = '3' LIMIT 1 [ RunTime:0.000446s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_bond_config` [ RunTime:0.001544s ]
|
||||||
|
[ sql ] [ SQL ] SELECT SUM(upper) AS tp_sum FROM `nf_user_bond_config` LIMIT 1 [ RunTime:0.000447s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_user_bond_log` [ RunTime:0.001388s ]
|
||||||
|
[ sql ] [ SQL ] SELECT SUM(intimacy) AS tp_sum FROM `nf_user_bond_log` WHERE `user_id` = 70 AND `createdate` = '2026-02-01' LIMIT 1 [ RunTime:0.000560s ]
|
||||||
|
[ sql ] [ SQL ] SHOW COLUMNS FROM `nf_third` [ RunTime:0.001464s ]
|
||||||
|
[ sql ] [ SQL ] SELECT `openid` FROM `nf_third` WHERE `user_id` = 70 AND `platform` = 'wxapp' LIMIT 1 [ RunTime:0.000542s ]
|
||||||
|
|
|
||||||
|
|
@ -6,4 +6,5 @@
|
||||||
5. 恋人消息回复增加思考中...
|
5. 恋人消息回复增加思考中...
|
||||||
- [ ] 恋人消息回复和消息编辑都需要测试
|
- [ ] 恋人消息回复和消息编辑都需要测试
|
||||||
6. 将Hbuilder的AppId更换成自己的,原本的保留(__UNI__1F3C178)。还是无法正常编译,将下面的插件注释掉不用,Agora-RTC:音视频插件和AudioRecode:录音插件。
|
6. 将Hbuilder的AppId更换成自己的,原本的保留(__UNI__1F3C178)。还是无法正常编译,将下面的插件注释掉不用,Agora-RTC:音视频插件和AudioRecode:录音插件。
|
||||||
- [ ] 克隆音色API填写然后给你测试
|
- [ ] 克隆音色API填写然后给你测试
|
||||||
|
7. 二维码推广功能:
|
||||||
Loading…
Reference in New Issue
Block a user