1.将部门修改为渠道,并且所有dice_表关联渠道表
2.将所有配置表,记录表设置关联渠道 3.优化后台页面设置
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
// +----------------------------------------------------------------------
|
||||
namespace plugin\saiadmin\basic;
|
||||
|
||||
use app\api\util\ApiLang;
|
||||
use support\Request;
|
||||
use support\Response;
|
||||
|
||||
@@ -36,6 +37,7 @@ class OpenController
|
||||
if (is_string($data)) {
|
||||
$msg = $data;
|
||||
}
|
||||
$msg = ApiLang::translate($msg, request());
|
||||
return json(['code' => 200, 'message' => $msg, 'data' => $data], $option);
|
||||
}
|
||||
|
||||
@@ -47,6 +49,7 @@ class OpenController
|
||||
*/
|
||||
public function fail(string $msg = 'fail', int $code = 400): Response
|
||||
{
|
||||
$msg = ApiLang::translate($msg, request());
|
||||
return json(['code' => $code, 'message' => $msg]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user