28 lines
617 B
PHP
28 lines
617 B
PHP
<?php
|
|
|
|
|
|
namespace app\store\controller\user;
|
|
|
|
use app\admin\logic\user_ship\UserShipLogic;
|
|
use app\store\controller\BaseAdminController;
|
|
use app\common\lists\user\UserShipLists;
|
|
|
|
|
|
class UserShipController extends BaseAdminController
|
|
{
|
|
|
|
public function lists()
|
|
{
|
|
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');
|
|
}
|
|
}
|
|
} |