作者 sgj
1 个管道 的构建 失败 耗费 0 秒

打卡状态编辑

... ... @@ -282,7 +282,7 @@ class SecondController extends RestBaseController
*@header name:XX-Token require:1 default: desc:token
*
*@param name:id type:int require:1 other: desc:课程id
*
*@return status:0,未答题1,已答过
*
* @throws
*/
... ... @@ -297,7 +297,14 @@ class SecondController extends RestBaseController
$classInfo=$Class->where($map)->find();
$classInfo['pic']=cmf_get_image_url($classInfo['pic']);
$classInfo['content']= cmf_replace_content_file_url(htmlspecialchars_decode($classInfo['content']));
$map1['class_id']=$id;
$map1['user_id'] =$userId;
$is_set=db('user_pass')->where($map1)->find();
if ($is_set){
$classInfo['status']='1';
}else{
$classInfo['status']='0';
}
$this->success('',$classInfo);
}
... ...