feat(UserShipController): 添加is_user_ship方法用于处理用户船只逻辑

This commit is contained in:
mkm 2024-07-03 18:01:31 +08:00
parent 7e2ad42b83
commit afd09bbb9b

View File

@ -3,7 +3,7 @@
namespace app\store\controller\user;
use app\admin\logic\user_ship\UserShipLogic;
use app\store\controller\BaseAdminController;
use app\common\lists\user\UserShipLists;
@ -15,4 +15,14 @@ class UserShipController extends BaseAdminController
{
return $this->dataLists(new UserShipLists());
}
public function is_user_ship(){
$data=$this->request->post();
UserShipLogic::user_ship($data);
if(UserShipLogic::hasError()){
return $this->fail(UserShipLogic::getError());
}else{
return $this->success('ok');
}
}
}