1
This commit is contained in:
parent
0f842b848d
commit
e2f0a35cc2
@ -128,10 +128,11 @@ class BlockChainController extends BaseAuthedController {
|
|||||||
myself()->_rspErr(1, 'already activated');
|
myself()->_rspErr(1, 'already activated');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
if ($heroDb['state'] == 1) {
|
if ($heroDb['state'] == 1) {
|
||||||
myself()->_rspErr(1, 'cant mint');
|
myself()->_rspErr(1, 'cant mint');
|
||||||
return;
|
return;
|
||||||
}
|
}*/
|
||||||
$tokenId = $heroDb['active_token_id'];
|
$tokenId = $heroDb['active_token_id'];
|
||||||
if (!$tokenId) {
|
if (!$tokenId) {
|
||||||
$tokenId = BuyRecord::genOrderId
|
$tokenId = BuyRecord::genOrderId
|
||||||
|
@ -289,9 +289,7 @@ END
|
|||||||
'subject' => $subject,
|
'subject' => $subject,
|
||||||
'content' => $content,
|
'content' => $content,
|
||||||
'recipients' => json_encode(array(
|
'recipients' => json_encode(array(
|
||||||
array(
|
$to,
|
||||||
'account_id' => $to,
|
|
||||||
)
|
|
||||||
)),
|
)),
|
||||||
'attachments' => $attachments,
|
'attachments' => $attachments,
|
||||||
'tag1' => 1,
|
'tag1' => 1,
|
||||||
@ -304,6 +302,7 @@ END
|
|||||||
'modifytime' => myself()->_getNowTime()
|
'modifytime' => myself()->_getNowTime()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
myself()->_rspOk();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -36,9 +36,7 @@ class MailApiService extends BaseService {
|
|||||||
'subject' => $subject,
|
'subject' => $subject,
|
||||||
'content' => $content,
|
'content' => $content,
|
||||||
'recipients' => json_encode(array(
|
'recipients' => json_encode(array(
|
||||||
array(
|
$to
|
||||||
'account_id' => $to,
|
|
||||||
)
|
|
||||||
)),
|
)),
|
||||||
'attachments' => json_encode($attachments),
|
'attachments' => json_encode($attachments),
|
||||||
'tag1' => 1,
|
'tag1' => 1,
|
||||||
@ -82,9 +80,7 @@ class MailApiService extends BaseService {
|
|||||||
'subject' => $subject,
|
'subject' => $subject,
|
||||||
'content' => $content,
|
'content' => $content,
|
||||||
'recipients' => json_encode(array(
|
'recipients' => json_encode(array(
|
||||||
array(
|
$to
|
||||||
'account_id' => $to,
|
|
||||||
)
|
|
||||||
)),
|
)),
|
||||||
'attachments' => json_encode($attachments),
|
'attachments' => json_encode($attachments),
|
||||||
'tag1' => 1,
|
'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