first commit

This commit is contained in:
编码猿
2024-09-27 01:32:49 +08:00
commit 28ebe05a64
7399 changed files with 1174529 additions and 0 deletions

View File

@@ -0,0 +1,59 @@
<?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);
}
}