|
|
|
@ -3166,8 +3166,10 @@ class DownloadController extends BaseController {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(!empty($map['user_account'])) {
|
|
|
|
|
$map['ui.user_account'] = $map['user_account'];
|
|
|
|
|
unset($map['user_account']);
|
|
|
|
|
$userId = M('user', 'tab_')->where(array('account' => ['like', $map['user_account'] . '%']))->getField('id');
|
|
|
|
|
$userId = $userId ?? 0;
|
|
|
|
|
$map['uc.user_id'] = $userId;
|
|
|
|
|
unset($map['user_account']);
|
|
|
|
|
}
|
|
|
|
|
if(!empty($map['promote_id'])) {
|
|
|
|
|
$map['uc.promote_id'] = $map['promote_id'];
|
|
|
|
|