Commit c81a5cb3 by 杨树贤

创建时间

parent 8b4cb16a
Showing with 6 additions and 5 deletions
......@@ -376,8 +376,8 @@ class DataService
//处理云芯账号的创建时间
public function dealYunxinAccountCreateTime()
{
$preYearTimestamp = time() - 24 * 3600 * 356 * 1;
$accounts = SupplierAccountModel::where('id', '>', 18)->get();
$preYearTimestamp = time() - 24 * 3600 * 252 * 1;
$accounts = SupplierAccountModel::where('id', '>', 4)->get();
$randNum = 0;
$lastTimestamp = 0;
foreach ($accounts as $account) {
......@@ -396,9 +396,10 @@ class DataService
}
$lastTimestamp = $createTimestamp;
dump(date('Y-m-d H:i:s',$createTimestamp));
SupplierAccountModel::where('id', $account['id'])->update([
'create_time' => $createTimestamp
]);
dd(123);
// SupplierAccountModel::where('id', $account['id'])->update([
// 'create_time' => $createTimestamp
// ]);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment