feat(UserShipController): 添加is_user_ship方法用于处理用户船只逻辑
This commit is contained in:
parent
7e2ad42b83
commit
afd09bbb9b
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
namespace app\store\controller\user;
|
namespace app\store\controller\user;
|
||||||
|
|
||||||
|
use app\admin\logic\user_ship\UserShipLogic;
|
||||||
use app\store\controller\BaseAdminController;
|
use app\store\controller\BaseAdminController;
|
||||||
use app\common\lists\user\UserShipLists;
|
use app\common\lists\user\UserShipLists;
|
||||||
|
|
||||||
@ -15,4 +15,14 @@ class UserShipController extends BaseAdminController
|
|||||||
{
|
{
|
||||||
return $this->dataLists(new UserShipLists());
|
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');
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user