Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
loveisland
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘小敏
loveisland
Commits
66428995
Commit
66428995
authored
Apr 24, 2026
by
gongs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我的试戴接口调试
parent
a75a7ba6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
219 additions
and
236 deletions
+219
-236
User.php
addons/shopro/controller/user/User.php
+8
-5
manifest.json
addons/shopro/uniapp/manifest.json
+211
-227
AiTryon.php
application/admin/model/shopro/AiTryon.php
+0
-4
No files found.
addons/shopro/controller/user/User.php
View file @
66428995
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
namespace
addons\shopro\controller\user
;
namespace
addons\shopro\controller\user
;
use
app\admin\model\shopro\AiTryon
;
use
app\common\library\Sms
;
use
app\common\library\Sms
;
use
addons\shopro\controller\Common
;
use
addons\shopro\controller\Common
;
use
addons\shopro\service\user\UserAuth
;
use
addons\shopro\service\user\UserAuth
;
...
@@ -10,7 +9,7 @@ use app\admin\model\shopro\user\User as UserModel;
...
@@ -10,7 +9,7 @@ use app\admin\model\shopro\user\User as UserModel;
use
app\admin\model\shopro\user\Coupon
as
UserCouponModel
;
use
app\admin\model\shopro\user\Coupon
as
UserCouponModel
;
use
app\admin\model\shopro\order\Order
as
OrderModel
;
use
app\admin\model\shopro\order\Order
as
OrderModel
;
use
app\admin\model\shopro\order\Aftersale
as
AftersaleModel
;
use
app\admin\model\shopro\order\Aftersale
as
AftersaleModel
;
use
app\admin\model\shopro\AiTryon
as
aiTryo
nModel
;
use
app\admin\model\shopro\AiTryon
as
AiTryO
nModel
;
use
app\admin\model\shopro\ThirdOauth
;
use
app\admin\model\shopro\ThirdOauth
;
class
User
extends
Common
class
User
extends
Common
...
@@ -51,11 +50,15 @@ class User extends Common
...
@@ -51,11 +50,15 @@ class User extends Common
/**
/**
* 我的试戴
* 我的试戴
*/
*/
public
function
myTyon
()
public
function
myT
r
yon
()
{
{
$user
=
auth_user
();
$user
=
auth_user
();
//查询我的试戴列表
$data
=
AiTryon
::
geted
()
->
where
(
'user_id'
,
$user
->
id
)
->
count
();
// 查询我的试戴列表
$data
=
AiTryOnModel
::
where
(
'user_id'
,
$user
->
id
)
->
order
(
'id'
,
'desc'
)
->
paginate
(
request
()
->
param
(
'list_rows'
,
10
))
->
toArray
();
$this
->
success
(
'我的试戴'
,
$data
);
$this
->
success
(
'我的试戴'
,
$data
);
}
}
...
...
addons/shopro/uniapp/manifest.json
View file @
66428995
{
{
"name"
:
"Shopro"
,
"name"
:
"Shopro"
,
"appid"
:
"__UNI__082C0BA"
,
"appid"
:
"__UNI__082C0BA"
,
"description"
:
"Shopro是由SheepJS团队开发,使用Uniapp+Vue3技术驱动的在线商城系统,内含诸多功能与丰富的活动,期待您的使用和反馈。"
,
"description"
:
"Shopro是由SheepJS团队开发,使用Uniapp+Vue3技术驱动的在线商城系统,内含诸多功能与丰富的活动,期待您的使用和反馈。"
,
"versionName"
:
"3.2.1"
,
"versionName"
:
"3.2.1"
,
"versionCode"
:
321
,
"versionCode"
:
321
,
"transformPx"
:
false
,
"transformPx"
:
false
,
"app-plus"
:
{
"app-plus"
:
{
"usingComponents"
:
true
,
"usingComponents"
:
true
,
"nvueCompiler"
:
"uni-app"
,
"nvueCompiler"
:
"uni-app"
,
"nvueStyleCompiler"
:
"uni-app"
,
"nvueStyleCompiler"
:
"uni-app"
,
"compilerVersion"
:
3
,
"compilerVersion"
:
3
,
"nvueLaunchMode"
:
"fast"
,
"nvueLaunchMode"
:
"fast"
,
"splashscreen"
:
{
"splashscreen"
:
{
"alwaysShowBeforeRender"
:
true
,
"alwaysShowBeforeRender"
:
true
,
"waiting"
:
true
,
"waiting"
:
true
,
"autoclose"
:
true
,
"autoclose"
:
true
,
"delay"
:
0
"delay"
:
0
},
"safearea"
:
{
"bottom"
:
{
"offset"
:
"none"
}
},
"modules"
:
{
"Payment"
:
{},
"Share"
:
{},
"VideoPlayer"
:
{},
"OAuth"
:
{}
},
"distribute"
:
{
"android"
:
{
"permissions"
:
[
"<uses-feature android:name=
\"
android.hardware.camera
\"
/>"
,
"<uses-feature android:name=
\"
android.hardware.camera.autofocus
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.ACCESS_COARSE_LOCATION
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.ACCESS_FINE_LOCATION
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.ACCESS_MOCK_LOCATION
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.ACCESS_NETWORK_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.ACCESS_WIFI_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.CALL_PHONE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.CAMERA
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.CHANGE_NETWORK_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.CHANGE_WIFI_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.FLASHLIGHT
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.GET_ACCOUNTS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.GET_TASKS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.INTERNET
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.MODIFY_AUDIO_SETTINGS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.MOUNT_UNMOUNT_FILESYSTEMS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.READ_CONTACTS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.READ_LOGS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.READ_PHONE_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.READ_SMS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.RECEIVE_BOOT_COMPLETED
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.RECORD_AUDIO
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.SEND_SMS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.SYSTEM_ALERT_WINDOW
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.VIBRATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.WAKE_LOCK
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.WRITE_CONTACTS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.WRITE_EXTERNAL_STORAGE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.WRITE_SETTINGS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.WRITE_SMS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.RECEIVE_USER_PRESENT
\"
/>"
],
"minSdkVersion"
:
21
,
"schemes"
:
"shopro"
},
"ios"
:
{
"urlschemewhitelist"
:
[
"baidumap"
,
"iosamap"
],
"dSYMs"
:
false
,
"privacyDescription"
:
{
"NSPhotoLibraryUsageDescription"
:
"需要同意访问您的相册选取图片才能完善该条目"
,
"NSPhotoLibraryAddUsageDescription"
:
"需要同意访问您的相册才能保存该图片"
,
"NSCameraUsageDescription"
:
"需要同意访问您的摄像头拍摄照片才能完善该条目"
,
"NSUserTrackingUsageDescription"
:
"开启追踪并不会获取您在其它站点的隐私信息,该行为仅用于标识设备,保障服务安全和提升浏览体验"
},
"urltypes"
:
"shopro"
,
"capabilities"
:
{
"entitlements"
:
{
"com.apple.developer.associated-domains"
:
[
"applinks:shopro.sheepjs.com"
]
}
},
},
"idfa"
:
true
"safearea"
:
{
},
"bottom"
:
{
"sdkConfigs"
:
{
"offset"
:
"none"
"speech"
:
{},
}
"ad"
:
{},
"oauth"
:
{
"apple"
:
{},
"weixin"
:
{
"appid"
:
"wxae7a0c156****b"
,
"UniversalLinks"
:
"https://shopro.sheepjs.com/uni-universallinks/__UNI__082C0BA/"
}
},
},
"payment"
:
{
"modules"
:
{
"weixin"
:
{
"Payment"
:
{},
"__platform__"
:
[
"Share"
:
{},
"ios"
,
"VideoPlayer"
:
{},
"android"
"OAuth"
:
{}
],
"appid"
:
"wxae7a0c156****b"
,
"UniversalLinks"
:
"https://shopro.sheepjs.com/uni-universallinks/__UNI__082C0BA/"
},
"alipay"
:
{
"__platform__"
:
[
"ios"
,
"android"
]
}
},
},
"share"
:
{
"distribute"
:
{
"weixin"
:
{
"android"
:
{
"appid"
:
"wxae7a0c156****b"
,
"permissions"
:
[
"UniversalLinks"
:
"https://shopro.sheepjs.com/uni-universallinks/__UNI__082C0BA/"
"<uses-feature android:name=
\"
android.hardware.camera
\"
/>"
,
}
"<uses-feature android:name=
\"
android.hardware.camera.autofocus
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.ACCESS_COARSE_LOCATION
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.ACCESS_FINE_LOCATION
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.ACCESS_MOCK_LOCATION
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.ACCESS_NETWORK_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.ACCESS_WIFI_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.CALL_PHONE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.CAMERA
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.CHANGE_NETWORK_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.CHANGE_WIFI_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.FLASHLIGHT
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.GET_ACCOUNTS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.GET_TASKS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.INTERNET
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.MODIFY_AUDIO_SETTINGS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.MOUNT_UNMOUNT_FILESYSTEMS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.READ_CONTACTS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.READ_LOGS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.READ_PHONE_STATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.READ_SMS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.RECEIVE_BOOT_COMPLETED
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.RECORD_AUDIO
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.SEND_SMS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.SYSTEM_ALERT_WINDOW
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.VIBRATE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.WAKE_LOCK
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.WRITE_CONTACTS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.WRITE_EXTERNAL_STORAGE
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.WRITE_SETTINGS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.WRITE_SMS
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.RECEIVE_USER_PRESENT
\"
/>"
],
"minSdkVersion"
:
21
,
"schemes"
:
"shopro"
},
"ios"
:
{
"urlschemewhitelist"
:
[
"baidumap"
,
"iosamap"
],
"dSYMs"
:
false
,
"privacyDescription"
:
{
"NSPhotoLibraryUsageDescription"
:
"需要同意访问您的相册选取图片才能完善该条目"
,
"NSPhotoLibraryAddUsageDescription"
:
"需要同意访问您的相册才能保存该图片"
,
"NSCameraUsageDescription"
:
"需要同意访问您的摄像头拍摄照片才能完善该条目"
,
"NSUserTrackingUsageDescription"
:
"开启追踪并不会获取您在其它站点的隐私信息,该行为仅用于标识设备,保障服务安全和提升浏览体验"
},
"urltypes"
:
"shopro"
,
"capabilities"
:
{
"entitlements"
:
{
"com.apple.developer.associated-domains"
:
[
"applinks:shopro.sheepjs.com"
]
}
},
"idfa"
:
true
},
"sdkConfigs"
:
{
"speech"
:
{},
"ad"
:
{},
"oauth"
:
{
"apple"
:
{},
"weixin"
:
{
"appid"
:
"wxae7a0c156****b"
,
"UniversalLinks"
:
"https://shopro.sheepjs.com/uni-universallinks/__UNI__082C0BA/"
}
},
"payment"
:
{
"weixin"
:
{
"__platform__"
:
[
"ios"
,
"android"
],
"appid"
:
"wxae7a0c156****b"
,
"UniversalLinks"
:
"https://shopro.sheepjs.com/uni-universallinks/__UNI__082C0BA/"
},
"alipay"
:
{
"__platform__"
:
[
"ios"
,
"android"
]
}
},
"share"
:
{
"weixin"
:
{
"appid"
:
"wxae7a0c156****b"
,
"UniversalLinks"
:
"https://shopro.sheepjs.com/uni-universallinks/__UNI__082C0BA/"
}
}
},
"orientation"
:
[
"portrait-primary"
],
"splashscreen"
:
{
"androidStyle"
:
"common"
,
"iosStyle"
:
"common"
,
"useOriginalMsgbox"
:
true
},
"icons"
:
{
"android"
:
{
"hdpi"
:
""
,
"xhdpi"
:
""
,
"xxhdpi"
:
""
,
"xxxhdpi"
:
""
},
"ios"
:
{
"appstore"
:
""
,
"ipad"
:
{
"app"
:
""
,
"app@2x"
:
""
,
"notification"
:
""
,
"notification@2x"
:
""
,
"proapp@2x"
:
""
,
"settings"
:
""
,
"settings@2x"
:
""
,
"spotlight"
:
""
,
"spotlight@2x"
:
""
},
"iphone"
:
{
"app@2x"
:
""
,
"app@3x"
:
""
,
"notification@2x"
:
""
,
"notification@3x"
:
""
,
"settings@2x"
:
""
,
"settings@3x"
:
""
,
"spotlight@2x"
:
""
,
"spotlight@3x"
:
""
}
}
}
}
}
},
},
"orientation"
:
[
"quickapp"
:
{},
"portrait-primary"
"quickapp-native"
:
{
],
"icon"
:
"/static/logo.png"
,
"splashscreen"
:
{
"package"
:
"com.example.demo"
,
"androidStyle"
:
"common"
,
"features"
:
[
"iosStyle"
:
"common"
,
{
"useOriginalMsgbox"
:
true
"name"
:
"system.clipboard"
},
}
"icons"
:
{
]
"android"
:
{
},
"hdpi"
:
""
,
"quickapp-webview"
:
{
"xhdpi"
:
""
,
"icon"
:
"/static/logo.png"
,
"xxhdpi"
:
""
,
"package"
:
"com.example.demo"
,
"xxxhdpi"
:
""
"minPlatformVersion"
:
1070
,
"versionName"
:
"1.0.0"
,
"versionCode"
:
100
},
"mp-weixin"
:
{
"appid"
:
"wxee40a72b94bccee5"
,
"setting"
:
{
"urlCheck"
:
false
,
"minified"
:
true
,
"postcss"
:
true
},
},
"ios"
:
{
"optimization"
:
{
"appstore"
:
""
,
"subPackages"
:
true
"ipad"
:
{
},
"app"
:
""
,
"plugins"
:
{},
"app@2x"
:
""
,
"lazyCodeLoading"
:
"requiredComponents"
,
"notification"
:
""
,
"usingComponents"
:
{},
"notification@2x"
:
""
,
"permission"
:
{},
"proapp@2x"
:
""
,
"requiredPrivateInfos"
:
[
"chooseAddress"
]
"settings"
:
""
,
"settings@2x"
:
""
,
"spotlight"
:
""
,
"spotlight@2x"
:
""
},
"iphone"
:
{
"app@2x"
:
""
,
"app@3x"
:
""
,
"notification@2x"
:
""
,
"notification@3x"
:
""
,
"settings@2x"
:
""
,
"settings@3x"
:
""
,
"spotlight@2x"
:
""
,
"spotlight@3x"
:
""
}
}
}
}
},
"quickapp"
:
{},
"quickapp-native"
:
{
"icon"
:
"/static/logo.png"
,
"package"
:
"com.example.demo"
,
"features"
:
[
{
"name"
:
"system.clipboard"
}
]
},
"quickapp-webview"
:
{
"icon"
:
"/static/logo.png"
,
"package"
:
"com.example.demo"
,
"minPlatformVersion"
:
1070
,
"versionName"
:
"1.0.0"
,
"versionCode"
:
100
},
"mp-weixin"
:
{
"appid"
:
"wx39****d4567dd0"
,
"setting"
:
{
"urlCheck"
:
false
,
"minified"
:
true
,
"postcss"
:
true
},
},
"
optimization"
:
{
"
mp-alipay"
:
{
"subPackages"
:
true
"usingComponents"
:
true
},
},
"plugins"
:
{},
"mp-baidu"
:
{
"lazyCodeLoading"
:
"requiredComponents"
,
"usingComponents"
:
true
"usingComponents"
:
{},
"permission"
:
{},
"requiredPrivateInfos"
:
[
"chooseAddress"
]
},
"mp-alipay"
:
{
"usingComponents"
:
true
},
"mp-baidu"
:
{
"usingComponents"
:
true
},
"mp-toutiao"
:
{
"usingComponents"
:
true
},
"mp-jd"
:
{
"usingComponents"
:
true
},
"h5"
:
{
"template"
:
"index.html"
,
"router"
:
{
"mode"
:
"hash"
,
"base"
:
"./"
},
},
"
sdkConfigs"
:
{
"
mp-toutiao"
:
{
"maps"
:
{}
"usingComponents"
:
true
},
},
"async"
:
{
"mp-jd"
:
{
"timeout"
:
20000
"usingComponents"
:
true
},
"h5"
:
{
"template"
:
"index.html"
,
"router"
:
{
"mode"
:
"hash"
,
"base"
:
"./"
},
"sdkConfigs"
:
{
"maps"
:
{}
},
"async"
:
{
"timeout"
:
20000
},
"title"
:
"星品购"
,
"optimization"
:
{
"treeShaking"
:
{
"enable"
:
true
}
}
},
},
"title"
:
"星品购"
,
"vueVersion"
:
"3"
,
"optimization"
:
{
"_spaceID"
:
"192b4892-5452-4e1d-9f09-eee1ece40639"
,
"treeShaking"
:
{
"locale"
:
"zh-Hans"
,
"enable"
:
true
"fallbackLocale"
:
"zh-Hans"
}
}
}
},
"vueVersion"
:
"3"
,
"_spaceID"
:
"192b4892-5452-4e1d-9f09-eee1ece40639"
,
"locale"
:
"zh-Hans"
,
"fallbackLocale"
:
"zh-Hans"
}
\ No newline at end of file
application/admin/model/shopro/AiTryon.php
View file @
66428995
...
@@ -8,10 +8,6 @@ use think\Model;
...
@@ -8,10 +8,6 @@ use think\Model;
class
AiTryon
extends
Model
class
AiTryon
extends
Model
{
{
// 表名
// 表名
protected
$name
=
'ai_tryon'
;
protected
$name
=
'ai_tryon'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment