18 lines
407 B
PHP
18 lines
407 B
PHP
<?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);
|
|
}
|
|
} |