oa-关联

master
zhanglingsheng 5 years ago
parent e9e66fa8a0
commit ce21545360

@ -98,6 +98,7 @@ unset($_REQUEST['parent_id']);
$promote = D(self::model_name)->field('id,account')->where(['oa_associated' => 0])->order('id DESC')->select();
$oa_data = array_column($oa_data, 'platform_account');
foreach($promote as $k => $v) {
$v['account'] = trim($v['account']);
if(in_array($v['account'], $oa_data)) {
M('promote','tab_')->where(['id' => $v['id']])->setField(['oa_associated' => 1]);
}
@ -109,8 +110,9 @@ unset($_REQUEST['parent_id']);
if(I('oa_associated',-1) == -1) {
foreach($list_data as $k => $v)
{
$list_data[$k]['account'] = trim($v['account']);
if($v['oa_associated'] != 1) {
$oa_data[] = $v['account'];
$oa_data[] = $list_data[$k]['account'];
}
}
if(!empty($oa_data))

Loading…
Cancel
Save