更新
This commit is contained in:
parent
dec683054a
commit
0b4beed3f7
@ -551,19 +551,12 @@ class Project extends BasicApi
|
|||||||
*/
|
*/
|
||||||
public function quit()
|
public function quit()
|
||||||
{
|
{
|
||||||
$member_code=Request::post('member_code');
|
try {
|
||||||
$positioning=Request::post('positioning');
|
$this->model->quit(Request::post('projectCode'));
|
||||||
$find=Db::name('member_positioning')->where(['member_code'=>$member_code,'positioning'=>$positioning])->find();
|
} catch (\Exception $e) {
|
||||||
if(!$find){
|
$this->error($e->getMessage(), $e->getCode());;
|
||||||
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('');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -573,9 +566,9 @@ class Project extends BasicApi
|
|||||||
public function positioning(){
|
public function positioning(){
|
||||||
$member_code=Request::post('member_code');
|
$member_code=Request::post('member_code');
|
||||||
$positioning=Request::post('positioning');
|
$positioning=Request::post('positioning');
|
||||||
$find=Db::name('member_positioning')->where(['member_code'=>$member_code,'positioning'=>$positioning])->find();
|
$find=Db::name('positioning')->where(['member_code'=>$member_code,'positioning'=>$positioning])->find();
|
||||||
if(!$find){
|
if(!$find){
|
||||||
Db::name('member_positioning')->insert(['member_code'=>$member_code,'positioning'=>$positioning,'date'=>date('Y-m-d H:i:s')]);
|
Db::name('positioning')->insert(['member_code'=>$member_code,'positioning'=>$positioning,'date'=>date('Y-m-d H:i:s')]);
|
||||||
}
|
}
|
||||||
$this->success('');
|
$this->success('');
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user