1
This commit is contained in:
@@ -391,8 +391,6 @@ class Board extends Controller {
|
||||
$pra['board_id'] = $data['board_id'];
|
||||
$res = object_to_array(json_decode(myPost($url, $pra)));
|
||||
$board = $res['data']['board'];
|
||||
|
||||
dump($board);die;
|
||||
$journal_info = $this->journal_obj->where('issn',$board['issn'])->find();
|
||||
$this->board_to_journal_obj->where('user_id',$board['tuser_id'])->where('journal_id',$journal_info['journal_id'])->update(['state'=>1]);
|
||||
return jsonSuccess([]);
|
||||
|
||||
@@ -127,6 +127,39 @@ class Production extends Base
|
||||
return jsonSuccess($re);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除main内容的某一行
|
||||
* @return void
|
||||
*
|
||||
*/
|
||||
public function delProductionMain(){
|
||||
$data = $this->request->post();
|
||||
$rule = new Validate([
|
||||
'p_main_id' => 'require'
|
||||
]);
|
||||
if(!$rule->check($data)){
|
||||
return jsonError($rule->getError());
|
||||
}
|
||||
$this->production_article_main_obj->where('p_main_id',$data['p_main_id'])->update(['state'=>1]);
|
||||
return jsonSuccess([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑main内容
|
||||
* @return \think\response\Json|void
|
||||
*
|
||||
*/
|
||||
public function editProductionMain(){
|
||||
$data = $this->request->post();
|
||||
$rule = new Validate([
|
||||
'p_main_id' => 'require',
|
||||
'content'=>'require'
|
||||
]);
|
||||
if(!$rule->check($data)){
|
||||
return jsonError($rule->getError());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除生产实例
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user