Your Name 3 years ago
parent
commit
bf96c38119
2 changed files with 2 additions and 3 deletions
  1. 1 2
      learn/active/lib/Active.php
  2. 1 1
      learn/active/src/Home.php

+ 1 - 2
learn/active/lib/Active.php

@@ -50,10 +50,9 @@ class Active
 				Dever::alert('本活动只能是代理商报名');
 				Dever::alert('本活动只能是代理商报名');
 			}
 			}
 		}
 		}
-		
 		if ($title && $member) {
 		if ($title && $member) {
 			foreach ($title as $k => $v) {
 			foreach ($title as $k => $v) {
-				if($v['id'] == $member['role']) {
+				if($v['id'] == $member['title_id']) {
 					if ($v['num'] > 0 && $num > $v['num']) {
 					if ($v['num'] > 0 && $num > $v['num']) {
 						Dever::alert('您已超过限购数量');
 						Dever::alert('您已超过限购数量');
 					}
 					}

+ 1 - 1
learn/active/src/Home.php

@@ -111,7 +111,7 @@ Class Home extends Core
 		}
 		}
 		$remark = Dever::input('remark');
 		$remark = Dever::input('remark');
 		$path = Dever::input('path');
 		$path = Dever::input('path');
-
+		
 		$result += Dever::load('active/lib/active')->action($uid, $id, $num, $path, $remark);
 		$result += Dever::load('active/lib/active')->action($uid, $id, $num, $path, $remark);
 		return $result;
 		return $result;
 	}
 	}