Files
CompanyProject/金壶/ydyd_service/application/api/controller/SystemConstantController.php
2024-09-27 01:32:49 +08:00

59 lines
1.8 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace app\api\controller;
/**
* Class SystemConstantController
* @package app\api\controller
* 用于app中获取系统配置常量如对公账号信息、客服信息、服务条款、联系方式等
*/
class SystemConstantController extends CommonController{
/**
* @apiDefine SystemConstant 系统配置
*/
protected $noAuth = [];
/**
* @apiVersion 1.0.0
* @api {post} /SystemConstant/accountInfo 1.对公账号信息(丁超)
* @apiName accountInfo
* @apiGroup SystemConstant
* @apiHeader {String} authentication 验证
* @apiSuccessExample Success-Response:
{
"code": 200,
"message": "成功",
"data": {
"company_name": "安徽医点医滴电子科技有限公司",
"company_code": "91340100395430469B",
"account_number": "223017051221000006",
"bank_name": "徽商银行股份有限公司肥东新城开发区支行",
"address": "合肥市肥东县梁园镇合肥上海产业园原路口乡政府院内",
"tel": "15155855066"
}
}
*
* @apiErrorExample Error-Respons:
* {
* "code": 500,
* "message": "fail",
* "data":{
* "info": "Err Msg",
* }
* }
*
*
*/
public function accountInfo(){
$default = [
"company_name"=> "安徽医点医滴电子科技有限公司",
"company_code"=>"91340100395430469B",
"account_number"=>"223017051221000006",
"bank_name"=>"徽商银行股份有限公司肥东新城开发区支行",
"address"=>"合肥市肥东县梁园镇合肥上海产业园原路口乡政府院内",
"tel"=>"15155855066"
];
$data = $this->initSysConstant()['ACCOUNT_INFO_YDYD']??$default;
return self::returnMsg(self::SUCCESS,self::getMessage('SUCCESS'),$data);
}
}