|
@@ -75,11 +75,13 @@ class Index extends Api
|
|
|
'money'=>$vl['money']+$addincome[$val['uid']]
|
|
|
];
|
|
|
}
|
|
|
- foreach ($linkincome[$val['uid']] as $key=>$val){
|
|
|
- $upuserlink[$key]=$val;
|
|
|
- $upuserlink[$key]['id']=$key;
|
|
|
- $upuserlink[$key]['endtime']=$unixtime;
|
|
|
+ if(isset($linkincome[$vl['id']])){
|
|
|
+ foreach ($linkincome[$vl['id']] as $key=>$val){
|
|
|
+ $upuserlink[$key]=$val;
|
|
|
+ $upuserlink[$key]['id']=$key;
|
|
|
+ $upuserlink[$key]['endtime']=$unixtime;
|
|
|
|
|
|
+ }
|
|
|
}
|
|
|
if($upincome){
|
|
|
$this->adminModel->saveAll($upincome);
|