更新
This commit is contained in:
parent
b1dae8929a
commit
dec683054a
@ -549,16 +549,35 @@ class Project extends BasicApi
|
|||||||
/**
|
/**
|
||||||
* 退出项目
|
* 退出项目
|
||||||
*/
|
*/
|
||||||
public
|
public function quit()
|
||||||
function quit()
|
|
||||||
{
|
{
|
||||||
try {
|
$member_code=Request::post('member_code');
|
||||||
$this->model->quit(Request::post('projectCode'));
|
$positioning=Request::post('positioning');
|
||||||
} catch (\Exception $e) {
|
$find=Db::name('member_positioning')->where(['member_code'=>$member_code,'positioning'=>$positioning])->find();
|
||||||
$this->error($e->getMessage(), $e->getCode());;
|
if(!$find){
|
||||||
|
Db::name('member_positioning')->insert(['member_code'=>$member_code,'positioning'=>$positioning,'date'=>date('Y-m-d H:i:s')]);
|
||||||
}
|
}
|
||||||
$this->success('');
|
$this->success('');
|
||||||
|
// try {
|
||||||
|
// $this->model->quit(Request::post('projectCode'));
|
||||||
|
// } catch (\Exception $e) {
|
||||||
|
// $this->error($e->getMessage(), $e->getCode());;
|
||||||
|
// }
|
||||||
|
// $this->success('');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 上报定位
|
||||||
|
*/
|
||||||
|
public function positioning(){
|
||||||
|
$member_code=Request::post('member_code');
|
||||||
|
$positioning=Request::post('positioning');
|
||||||
|
$find=Db::name('member_positioning')->where(['member_code'=>$member_code,'positioning'=>$positioning])->find();
|
||||||
|
if(!$find){
|
||||||
|
Db::name('member_positioning')->insert(['member_code'=>$member_code,'positioning'=>$positioning,'date'=>date('Y-m-d H:i:s')]);
|
||||||
|
}
|
||||||
|
$this->success('');
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user