@@ -50,10 +50,9 @@ class Active
Dever::alert('本活动只能是代理商报名');
}
-
if ($title && $member) {
foreach ($title as $k => $v) {
- if($v['id'] == $member['role']) {
+ if($v['id'] == $member['title_id']) {
if ($v['num'] > 0 && $num > $v['num']) {
Dever::alert('您已超过限购数量');
@@ -111,7 +111,7 @@ Class Home extends Core
$remark = Dever::input('remark');
$path = Dever::input('path');
+
$result += Dever::load('active/lib/active')->action($uid, $id, $num, $path, $remark);
return $result;