|
|
@@ -55,6 +55,7 @@ class Video extends Controller
|
|
|
|
|
|
$userInfo = Db::table('awards_user_info')->where('uid', $user['uid'])->find();
|
|
|
$count = 0;
|
|
|
+ $realCount = 3;
|
|
|
$isShare = 0;
|
|
|
if (empty($userInfo)) {
|
|
|
$userAttr = [
|
|
|
@@ -69,6 +70,7 @@ class Video extends Controller
|
|
|
} else {
|
|
|
$count = Db::table('awards_user_task_log')->where('uid', $user['uid'])->count('id');
|
|
|
$isShare = $userInfo['is_share'];
|
|
|
+ $realCount = $userInfo['count'];
|
|
|
}
|
|
|
|
|
|
// 生成加密用的密钥和向量
|
|
|
@@ -114,6 +116,7 @@ class Video extends Controller
|
|
|
$this->assign('isBeginActivity', $isBeginActivity);
|
|
|
$this->assign('task', json_encode($userInfo));
|
|
|
$this->assign('isLogin', $isLogin);
|
|
|
+ $this->assign('realCount', $realCount);
|
|
|
|
|
|
$this->fetch();
|
|
|
}
|