Skip to content

Commit bcafe4e

Browse files
committed
细节修改
1 parent d08fd92 commit bcafe4e

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

‎sysapp/appmarket/index.php‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,17 @@
6464
$myapplist = $db->select('tb_member_app', 'realid', array(
6565
'member_id' => session('member_id')
6666
));
67+
$myapplist2 = array();
68+
foreach($db->select('tb_member_app', array('tbid', 'realid'), array(
69+
'AND' => array(
70+
'member_id' => session('member_id'),
71+
'realid[!]' => null
72+
)
73+
)) as $value){
74+
$myapplist2[$value['realid']] = $value['tbid'];
75+
}
6776
if(in_array($recommendApp['tbid'], $myapplist)){
68-
echo '<a href="javascript:;" real_app_id="'.$recommendApp['tbid'].'" app_type="'.$recommendApp['type'].'" class="btn-run">打开应用</a>';
77+
echo '<a href="javascript:;" app_id="'.$myapplist2[$recommendApp['tbid']].'" real_app_id="'.$recommendApp['tbid'].'" app_type="'.$recommendApp['type'].'" class="btn-run">打开应用</a>';
6978
}else{
7079
echo '<a href="javascript:;" real_app_id="'.$recommendApp['tbid'].'" class="btn-add">添加应用</a>';
7180
}

0 commit comments

Comments
 (0)