|
|
|
@ -47,9 +47,10 @@ class FormTemplate |
|
|
|
* 是否已报名 |
|
|
|
* @param $template_type |
|
|
|
* @param $activities_id |
|
|
|
* @param $diyformid |
|
|
|
* @return array|false|mixed |
|
|
|
*/ |
|
|
|
public static function isEnroll($template_type,$activities_id) |
|
|
|
public static function isEnroll($template_type,$activities_id,$diyformid) |
|
|
|
{ |
|
|
|
global $_W; |
|
|
|
#$template_type = self::$template_relation[$template_type]; |
|
|
|
@ -57,7 +58,8 @@ class FormTemplate |
|
|
|
$where = [ |
|
|
|
'template_type' => $template_type, |
|
|
|
'activities_id' => $activities_id, |
|
|
|
'mid' => $_W['mid'] |
|
|
|
'mid' => $_W['mid'], |
|
|
|
'diyformid' => $diyformid |
|
|
|
]; |
|
|
|
$res = pdo_get(PDO_NAME . 'member_enroll',$where); |
|
|
|
return $res ?: []; |
|
|
|
|