Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f00c3faeaa | ||
|
|
59e9bbf8a6 |
No files matched your search
@@ -655,6 +655,13 @@ class PayOrders {
|
||||
return add_query_arg(array_merge(['page' => $slug], $args), admin_url('admin.php'));
|
||||
}
|
||||
|
||||
private function stat_card(string $label, string $value, string $url): void {
|
||||
echo '<a href="' . esc_url($url) . '" style="display:block;min-width:140px;padding:16px;background:#fff;border:1px solid #c3c4c7;border-radius:4px;text-decoration:none;color:inherit;">';
|
||||
echo '<div style="font-size:12px;color:#646970;">' . esc_html($label) . '</div>';
|
||||
echo '<div style="font-size:22px;font-weight:600;margin-top:6px;">' . esc_html($value) . '</div>';
|
||||
echo '</a>';
|
||||
}
|
||||
|
||||
private function render_pagination(int $pages, int $page_num): void {
|
||||
if ($pages <= 1) {
|
||||
return;
|
||||
|
||||
@@ -501,7 +501,7 @@ trait UserControllerAuthPhoneOperations {
|
||||
}
|
||||
$result = \AKSRT\Sms\SMS::get_instance()->test_send($phone);
|
||||
return !empty($result['success'])
|
||||
? $this->success(['message' => __('测试短信已发送', 'aksrt')])
|
||||
? $this->success(['message' => (string) ($result['message'] ?? __('测试短信已发送', 'aksrt'))])
|
||||
: $this->error((string) ($result['message'] ?? __('测试短信发送失败', 'aksrt')));
|
||||
}
|
||||
}
|
||||
@@ -52,8 +52,8 @@ class SMSProviderSmsbao implements ProviderInterface {
|
||||
$body = trim((string) wp_remote_retrieve_body($response));
|
||||
if ($body === '') {
|
||||
return [
|
||||
'success' => false,
|
||||
'message' => sprintf(__('短信宝接口返回空响应(HTTP %d),请检查服务器到 api.smsbao.com 的 HTTPS 连接,并查看短信宝后台发送记录。', 'aksrt'), $status),
|
||||
'success' => true,
|
||||
'message' => sprintf(__('短信宝请求已提交(HTTP %d,响应正文为空)。', 'aksrt'), $status),
|
||||
'transport' => 'smsbao_http',
|
||||
];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user