fix: 修复了用户地址、商品库存等错误; refactor: 重构了登录逻辑,提高了代码可读性; style: 调整了代码格式,使其更加规范; test: 增加了订单支付的测试用例; docs: 更新了相关文档; build: 更新了依赖; ops: 优化了服务器性能; chore: 更新了.gitignore文件;
37 lines
783 B
PHP
37 lines
783 B
PHP
<?php
|
|
|
|
namespace app\api\controller\user_ship;
|
|
|
|
use app\admin\logic\user_ship\UserShipLogic;
|
|
use app\api\controller\BaseApiController;
|
|
use app\common\lists\user\UserShipLists;
|
|
|
|
/**
|
|
* 用户类型控制器
|
|
* Class UserLabelController
|
|
* @package app\admin\controller\user_label
|
|
*/
|
|
class UserShipController extends BaseApiController
|
|
{
|
|
|
|
|
|
/**
|
|
* @notes 获取用户类型列表
|
|
* @return \think\response\Json
|
|
* @author admin
|
|
* @date 2024/06/17 17:02
|
|
*/
|
|
public function lists()
|
|
{
|
|
$this->request->__set('id',1);
|
|
return $this->dataLists(new UserShipLists());
|
|
}
|
|
|
|
|
|
public function is_user_ship(){
|
|
$data=$this->request->post();
|
|
UserShipLogic::user_ship($data);
|
|
return $this->success('ok');
|
|
|
|
}
|
|
} |