Commit 66428995 authored by gongs's avatar gongs

我的试戴接口调试

parent a75a7ba6
...@@ -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 aiTryonModel; use app\admin\model\shopro\AiTryon as AiTryOnModel;
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 myTryon()
{ {
$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);
} }
......
{ {
"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": { "safearea" : {
"bottom": { "bottom" : {
"offset": "none" "offset" : "none"
} }
}, },
"modules": { "modules" : {
"Payment": {}, "Payment" : {},
"Share": {}, "Share" : {},
"VideoPlayer": {}, "VideoPlayer" : {},
"OAuth": {} "OAuth" : {}
}, },
"distribute": { "distribute" : {
"android": { "android" : {
"permissions": [ "permissions" : [
"<uses-feature android:name=\"android.hardware.camera\"/>", "<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>", "<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>", "<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>",
...@@ -64,174 +64,159 @@ ...@@ -64,174 +64,159 @@
"<uses-permission android:name=\"android.permission.WRITE_SMS\"/>", "<uses-permission android:name=\"android.permission.WRITE_SMS\"/>",
"<uses-permission android:name=\"android.permission.RECEIVE_USER_PRESENT\"/>" "<uses-permission android:name=\"android.permission.RECEIVE_USER_PRESENT\"/>"
], ],
"minSdkVersion": 21, "minSdkVersion" : 21,
"schemes": "shopro" "schemes" : "shopro"
}, },
"ios": { "ios" : {
"urlschemewhitelist": [ "urlschemewhitelist" : [ "baidumap", "iosamap" ],
"baidumap", "dSYMs" : false,
"iosamap" "privacyDescription" : {
], "NSPhotoLibraryUsageDescription" : "需要同意访问您的相册选取图片才能完善该条目",
"dSYMs": false, "NSPhotoLibraryAddUsageDescription" : "需要同意访问您的相册才能保存该图片",
"privacyDescription": { "NSCameraUsageDescription" : "需要同意访问您的摄像头拍摄照片才能完善该条目",
"NSPhotoLibraryUsageDescription": "需要同意访问您的相册选取图片才能完善该条目", "NSUserTrackingUsageDescription" : "开启追踪并不会获取您在其它站点的隐私信息,该行为仅用于标识设备,保障服务安全和提升浏览体验"
"NSPhotoLibraryAddUsageDescription": "需要同意访问您的相册才能保存该图片", },
"NSCameraUsageDescription": "需要同意访问您的摄像头拍摄照片才能完善该条目", "urltypes" : "shopro",
"NSUserTrackingUsageDescription": "开启追踪并不会获取您在其它站点的隐私信息,该行为仅用于标识设备,保障服务安全和提升浏览体验" "capabilities" : {
}, "entitlements" : {
"urltypes": "shopro", "com.apple.developer.associated-domains" : [ "applinks:shopro.sheepjs.com" ]
"capabilities": {
"entitlements": {
"com.apple.developer.associated-domains": [
"applinks:shopro.sheepjs.com"
]
} }
}, },
"idfa": true "idfa" : true
}, },
"sdkConfigs": { "sdkConfigs" : {
"speech": {}, "speech" : {},
"ad": {}, "ad" : {},
"oauth": { "oauth" : {
"apple": {}, "apple" : {},
"weixin": { "weixin" : {
"appid": "wxae7a0c156****b", "appid" : "wxae7a0c156****b",
"UniversalLinks": "https://shopro.sheepjs.com/uni-universallinks/__UNI__082C0BA/" "UniversalLinks" : "https://shopro.sheepjs.com/uni-universallinks/__UNI__082C0BA/"
} }
}, },
"payment": { "payment" : {
"weixin": { "weixin" : {
"__platform__": [ "__platform__" : [ "ios", "android" ],
"ios", "appid" : "wxae7a0c156****b",
"android" "UniversalLinks" : "https://shopro.sheepjs.com/uni-universallinks/__UNI__082C0BA/"
],
"appid": "wxae7a0c156****b",
"UniversalLinks": "https://shopro.sheepjs.com/uni-universallinks/__UNI__082C0BA/"
}, },
"alipay": { "alipay" : {
"__platform__": [ "__platform__" : [ "ios", "android" ]
"ios",
"android"
]
} }
}, },
"share": { "share" : {
"weixin": { "weixin" : {
"appid": "wxae7a0c156****b", "appid" : "wxae7a0c156****b",
"UniversalLinks": "https://shopro.sheepjs.com/uni-universallinks/__UNI__082C0BA/" "UniversalLinks" : "https://shopro.sheepjs.com/uni-universallinks/__UNI__082C0BA/"
} }
} }
}, },
"orientation": [ "orientation" : [ "portrait-primary" ],
"portrait-primary" "splashscreen" : {
], "androidStyle" : "common",
"splashscreen": { "iosStyle" : "common",
"androidStyle": "common", "useOriginalMsgbox" : true
"iosStyle": "common", },
"useOriginalMsgbox": true "icons" : {
}, "android" : {
"icons": { "hdpi" : "",
"android": { "xhdpi" : "",
"hdpi": "", "xxhdpi" : "",
"xhdpi": "", "xxxhdpi" : ""
"xxhdpi": "", },
"xxxhdpi": "" "ios" : {
}, "appstore" : "",
"ios": { "ipad" : {
"appstore": "", "app" : "",
"ipad": { "app@2x" : "",
"app": "", "notification" : "",
"app@2x": "", "notification@2x" : "",
"notification": "", "proapp@2x" : "",
"notification@2x": "", "settings" : "",
"proapp@2x": "", "settings@2x" : "",
"settings": "", "spotlight" : "",
"settings@2x": "", "spotlight@2x" : ""
"spotlight": "", },
"spotlight@2x": "" "iphone" : {
}, "app@2x" : "",
"iphone": { "app@3x" : "",
"app@2x": "", "notification@2x" : "",
"app@3x": "", "notification@3x" : "",
"notification@2x": "", "settings@2x" : "",
"notification@3x": "", "settings@3x" : "",
"settings@2x": "", "spotlight@2x" : "",
"settings@3x": "", "spotlight@3x" : ""
"spotlight@2x": "",
"spotlight@3x": ""
} }
} }
} }
} }
}, },
"quickapp": {}, "quickapp" : {},
"quickapp-native": { "quickapp-native" : {
"icon": "/static/logo.png", "icon" : "/static/logo.png",
"package": "com.example.demo", "package" : "com.example.demo",
"features": [ "features" : [
{ {
"name": "system.clipboard" "name" : "system.clipboard"
} }
] ]
}, },
"quickapp-webview": { "quickapp-webview" : {
"icon": "/static/logo.png", "icon" : "/static/logo.png",
"package": "com.example.demo", "package" : "com.example.demo",
"minPlatformVersion": 1070, "minPlatformVersion" : 1070,
"versionName": "1.0.0", "versionName" : "1.0.0",
"versionCode": 100 "versionCode" : 100
}, },
"mp-weixin": { "mp-weixin" : {
"appid": "wx39****d4567dd0", "appid" : "wxee40a72b94bccee5",
"setting": { "setting" : {
"urlCheck": false, "urlCheck" : false,
"minified": true, "minified" : true,
"postcss": true "postcss" : true
}, },
"optimization": { "optimization" : {
"subPackages": true "subPackages" : true
}, },
"plugins": {}, "plugins" : {},
"lazyCodeLoading": "requiredComponents", "lazyCodeLoading" : "requiredComponents",
"usingComponents": {}, "usingComponents" : {},
"permission": {}, "permission" : {},
"requiredPrivateInfos": [ "requiredPrivateInfos" : [ "chooseAddress" ]
"chooseAddress" },
] "mp-alipay" : {
}, "usingComponents" : true
"mp-alipay": { },
"usingComponents": true "mp-baidu" : {
}, "usingComponents" : true
"mp-baidu": { },
"usingComponents": true "mp-toutiao" : {
}, "usingComponents" : true
"mp-toutiao": { },
"usingComponents": true "mp-jd" : {
}, "usingComponents" : true
"mp-jd": { },
"usingComponents": true "h5" : {
}, "template" : "index.html",
"h5": { "router" : {
"template": "index.html", "mode" : "hash",
"router": { "base" : "./"
"mode": "hash", },
"base": "./" "sdkConfigs" : {
}, "maps" : {}
"sdkConfigs": { },
"maps": {} "async" : {
}, "timeout" : 20000
"async": { },
"timeout": 20000 "title" : "星品购",
}, "optimization" : {
"title": "星品购", "treeShaking" : {
"optimization": { "enable" : true
"treeShaking": {
"enable": true
} }
} }
}, },
"vueVersion": "3", "vueVersion" : "3",
"_spaceID": "192b4892-5452-4e1d-9f09-eee1ece40639", "_spaceID" : "192b4892-5452-4e1d-9f09-eee1ece40639",
"locale": "zh-Hans", "locale" : "zh-Hans",
"fallbackLocale": "zh-Hans" "fallbackLocale" : "zh-Hans"
} }
...@@ -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';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment