2024-12-07 18:56:07 +08:00
|
|
|
<?php
|
|
|
|
|
|
2025-04-25 19:02:06 +08:00
|
|
|
namespace app\testapp\controller;
|
2024-12-07 18:56:07 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
use think\Db;
|
|
|
|
|
|
|
|
|
|
class Wechatabout extends Base{
|
|
|
|
|
|
|
|
|
|
protected $msginformation_use_db_name = [
|
2025-09-03 19:09:13 +08:00
|
|
|
'1'=>'admin_editor_text_content',
|
|
|
|
|
'2'=>'admin_editor_text_like_up_log',
|
2024-12-07 18:56:07 +08:00
|
|
|
];
|
|
|
|
|
protected $page_num = 10;
|
|
|
|
|
// 加 bcadd(,,20)
|
|
|
|
|
// 减 bcsub(,,20)
|
|
|
|
|
// 乘 bcmul(,,20)
|
|
|
|
|
// 除 bcdiv(,,20)
|
|
|
|
|
################################################################接口################################################################
|
|
|
|
|
################################################################接口################################################################
|
|
|
|
|
################################################################接口################################################################
|
|
|
|
|
|
|
|
|
|
// 获取板块,及板块下类型标签
|
|
|
|
|
public function get_access_token_action(){
|
|
|
|
|
try {
|
|
|
|
|
$return_data = $this->get_sector_label_msg_action();
|
|
|
|
|
return $return_data;
|
|
|
|
|
} catch (\Exception $e) {
|
|
|
|
|
// 捕获异常
|
|
|
|
|
$logContent["flie"] = $e->getFile();
|
|
|
|
|
$logContent["line"] = $e->getLine();
|
|
|
|
|
$logContent['all_content'] = "异常信息:\n";
|
|
|
|
|
$logContent['all_content'] .= "消息: " . $e->getMessage() . "\n";
|
|
|
|
|
$logContent['all_content'] .= "代码: " . $e->getCode() . "\n";
|
|
|
|
|
$logContent['all_content'] .= "文件: " . $e->getFile() . "\n";
|
|
|
|
|
$logContent['all_content'] .= "行号: " . $e->getLine() . "\n";
|
|
|
|
|
$logContent['all_content'] .= "跟踪信息:\n" . $e->getTraceAsString() . "\n";
|
|
|
|
|
$this->record_api_log([], $logContent, null);
|
|
|
|
|
return $this->msg(99999);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|