软路由产品

This commit is contained in:
“wanyongkang”
2022-03-21 17:59:31 +08:00
parent 3c12d66466
commit 506e4db0b0
6 changed files with 179 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
<?php
namespace app\ros\controller;
use app\ros\model\Product as ProductModel;
use app\ros\model\Buyer as BuyerModel;
use fastphp\base\Controller;
class Product extends Controller
{
//获取产品列表
public function getBuyerInfo() {
$buyer_model = new BuyerModel();
$info = $buyer_model->getOne(['user_id'=>$this->userinfo['UserId']]);
echo json_encode($info);
}
}