Commit 66428995 authored by gongs's avatar gongs

我的试戴接口调试

parent a75a7ba6
......@@ -2,7 +2,6 @@
namespace addons\shopro\controller\user;
use app\admin\model\shopro\AiTryon;
use app\common\library\Sms;
use addons\shopro\controller\Common;
use addons\shopro\service\user\UserAuth;
......@@ -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\order\Order as OrderModel;
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;
class User extends Common
......@@ -51,11 +50,15 @@ class User extends Common
/**
* 我的试戴
*/
public function myTyon()
public function myTryon()
{
$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 diff is collapsed.
......@@ -8,10 +8,6 @@ use think\Model;
class AiTryon extends Model
{
// 表名
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