This commit is contained in:
aozhiwei 2024-06-05 16:14:26 +08:00
parent 0f842b848d
commit e2f0a35cc2
3 changed files with 18 additions and 10 deletions

View File

@ -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

View File

@ -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();
}
}

View File

@ -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']);
}
}
}