Commit 81e43609 authored by shajiaiming's avatar shajiaiming

fix

parent eff11c27
...@@ -241,6 +241,13 @@ class IssueChainTransferController extends Controller ...@@ -241,6 +241,13 @@ class IssueChainTransferController extends Controller
]); ]);
} }
if (1 != $val->coin->platform_id) {
$platform_ids = explode(',', $val->coin->platform_id);
$platform_ids = implode(',', array_unique(array_merge([1], $platform_ids)));
} else {
$platform_ids = 1;
}
//1.1查询后,交易成功 //1.1查询后,交易成功
if (1 == $step) { if (1 == $step) {
CoinIssueCoin::updateAll(['status' => $status], [ CoinIssueCoin::updateAll(['status' => $status], [
...@@ -255,7 +262,7 @@ class IssueChainTransferController extends Controller ...@@ -255,7 +262,7 @@ class IssueChainTransferController extends Controller
'price' => isset($val->coin->platform->issue_charge) ? (int)$val->coin->platform->issue_charge : 0, 'price' => isset($val->coin->platform->issue_charge) ? (int)$val->coin->platform->issue_charge : 0,
'category' => (int)$val->coin->category, 'category' => (int)$val->coin->category,
'owner' => $val->coin->owner, 'owner' => $val->coin->owner,
'platform_id' => $val->coin->platform_id, 'platform_id' => $platform_ids,
'platform' => $val->coin->chain->platform 'platform' => $val->coin->chain->platform
]; ];
$this->syncCoin($params); $this->syncCoin($params);
...@@ -276,7 +283,7 @@ class IssueChainTransferController extends Controller ...@@ -276,7 +283,7 @@ class IssueChainTransferController extends Controller
'price' => isset($val->coin->platform->issue_charge) ? (int)$val->coin->platform->issue_charge : 0, 'price' => isset($val->coin->platform->issue_charge) ? (int)$val->coin->platform->issue_charge : 0,
'category' => (int)$val->coin->category, 'category' => (int)$val->coin->category,
'owner' => $val->coin->owner, 'owner' => $val->coin->owner,
'platform_id' => $val->coin->platform_id, 'platform_id' => $platform_ids,
'platform' => $val->coin->chain->platform 'platform' => $val->coin->chain->platform
]; ];
$this->syncCoin($params); $this->syncCoin($params);
......
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