Commit f3648d20 authored by shajiaiming's avatar shajiaiming

fix

parent 60f0b8c2
......@@ -162,6 +162,16 @@ class IssueCoinController extends BaseController
public function actionSendTransfer()
{
$data = null;
$header = Yii::$app->request->headers;
$platform_id = $header['FZM-PLATFORM-ID'] ?? null;
if (empty($platform_id)) {
$msg = '缺少必要的参数';
$code = -1;
goto doEnd;
}
$params = Yii::$app->request->post();
$id = isset($params['id']) ? (int)$params['id'] : 0;
$pre_create_tx = isset($params['pre_create_tx']) ? $params['pre_create_tx'] : '';
......@@ -212,6 +222,16 @@ class IssueCoinController extends BaseController
*/
public function actionVerify()
{
$data = null;
$header = Yii::$app->request->headers;
$platform_id = $header['FZM-PLATFORM-ID'] ?? null;
if (empty($platform_id)) {
$msg = '缺少必要的参数';
$code = -1;
goto doEnd;
}
$params = Yii::$app->request->post();
$id = isset($params['id']) ? (int)$params['id'] : 0;
$status = isset($params['status']) ? (int)$params['status'] : 0;
......
......@@ -24,7 +24,7 @@ class IssueChainTransferController extends Controller
public function actionSendTransaction($step, $type)
{
if (0 == $type) {
$status = CoinIssueCoin::UN_AUDIT;
$status = CoinIssueCoin::ALLOWED_ISSUE;
$manual_review = Yii::$app->redis->get('issue_chain_manual_review');
if ('close' == $manual_review) {
return 0;
......@@ -238,10 +238,4 @@ class IssueChainTransferController extends Controller
$coin_issue_record->save();
}
public function syncTransfer($id)
{
$issue_transfer = CoinIssueTransfer::find()->where(['id' => $id])->one();
$issue_transfer->unissue = 0;
$issue_transfer->save();
}
}
\ No newline at end of file
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