Commit 52925b6c authored by shajiaming's avatar shajiaming

Merge branch 'feature/issue_coin' into develop

parents 4ea629e1 afdf00ed
......@@ -372,12 +372,12 @@ class IssueChainTransferController extends Controller
public function actionUpdateChain()
{
$current_time = date('Y-m-d H:i:s');
$current_time = date('Y-m-d H:i:s',strtotime('-10 minute'));
$chains = CoinPlatformWithHold::find()
->where(['status' => CoinPlatformWithHold::STATUS_CREATEING, 'origin' => CoinPlatformWithHold::ORIGIN_USER])
->andWhere(['<', 'create_time', $current_time])
->all();
if (empty($chains)) {
echo date('Y-m-d H:i:s') . '无需更新的链' . PHP_EOL;
return 0;
......
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 to comment