|
@@ -109,13 +109,12 @@ class Index extends Api
|
|
$userlinkdata[]=['id'=>$val['userlinkid'],'income'=>$val['income']+$income];
|
|
$userlinkdata[]=['id'=>$val['userlinkid'],'income'=>$val['income']+$income];
|
|
|
|
|
|
}
|
|
}
|
|
- print_r($userlinkdata);
|
|
|
|
- print_r($savedata);
|
|
|
|
-// $this->userlinkModel->saveAll($userlinkdata);
|
|
|
|
-// $this->recordModel->saveAll($savedata);
|
|
|
|
|
|
+
|
|
|
|
+ $this->userlinkModel->saveAll($userlinkdata);
|
|
|
|
+ $this->recordModel->saveAll($savedata);
|
|
$returndata= 'insert ' . count($savedata) . ' record';
|
|
$returndata= 'insert ' . count($savedata) . ' record';
|
|
}
|
|
}
|
|
- // Db::commit();
|
|
|
|
|
|
+ Db::commit();
|
|
}
|
|
}
|
|
return $returndata;
|
|
return $returndata;
|
|
}
|
|
}
|