1
This commit is contained in:
parent
0f842b848d
commit
e2f0a35cc2
@ -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
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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']);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user