diff --git a/webapp/controller/BlockChainController.class.php b/webapp/controller/BlockChainController.class.php index afe8ae23..989350f1 100644 --- a/webapp/controller/BlockChainController.class.php +++ b/webapp/controller/BlockChainController.class.php @@ -128,10 +128,11 @@ class BlockChainController extends BaseAuthedController { myself()->_rspErr(1, 'already activated'); return; } + /* if ($heroDb['state'] == 1) { myself()->_rspErr(1, 'cant mint'); return; - } + }*/ $tokenId = $heroDb['active_token_id']; if (!$tokenId) { $tokenId = BuyRecord::genOrderId diff --git a/webapp/controller/GMController.class.php b/webapp/controller/GMController.class.php index 57768964..205d48ea 100644 --- a/webapp/controller/GMController.class.php +++ b/webapp/controller/GMController.class.php @@ -289,9 +289,7 @@ END 'subject' => $subject, 'content' => $content, 'recipients' => json_encode(array( - array( - 'account_id' => $to, - ) + $to, )), 'attachments' => $attachments, 'tag1' => 1, @@ -304,6 +302,7 @@ END 'modifytime' => myself()->_getNowTime() ) ); + myself()->_rspOk(); } } diff --git a/webapp/services/MailApiService.php b/webapp/services/MailApiService.php index a1ae0622..f207cac0 100644 --- a/webapp/services/MailApiService.php +++ b/webapp/services/MailApiService.php @@ -36,9 +36,7 @@ class MailApiService extends BaseService { 'subject' => $subject, 'content' => $content, 'recipients' => json_encode(array( - array( - 'account_id' => $to, - ) + $to )), 'attachments' => json_encode($attachments), 'tag1' => 1, @@ -82,9 +80,7 @@ class MailApiService extends BaseService { 'subject' => $subject, 'content' => $content, 'recipients' => json_encode(array( - array( - 'account_id' => $to, - ) + $to )), 'attachments' => json_encode($attachments), 'tag1' => 1, @@ -99,4 +95,16 @@ class MailApiService extends BaseService { ); } + private function adjustAttachments(&$attachments) + { + if (empty($attachments)) { + $attachments = ''; + return; + } + foreach ($attachments as &$val) { + $val['itemid'] = intval($val['itemid']); + $val['itemnum'] = intval($val['itemnum']); + } + } + }