Merge branch 'master' of http://47.244.231.31:8099/zhl/globalso-v6
正在显示
4 个修改的文件
包含
45 行增加
和
0 行删除
| @@ -165,6 +165,9 @@ class ProductController extends BaseController | @@ -165,6 +165,9 @@ class ProductController extends BaseController | ||
| 165 | if(isset($this->map['status'])){ | 165 | if(isset($this->map['status'])){ |
| 166 | $query = $query->where('status',$this->map['status']); | 166 | $query = $query->where('status',$this->map['status']); |
| 167 | } | 167 | } |
| 168 | + if(isset($this->map['created_uid'])){ | ||
| 169 | + $query = $query->where('created_uid',$this->map['created_uid']); | ||
| 170 | + } | ||
| 168 | if(!empty($this->param['start_at']) && !empty($this->param['end_at'])){ | 171 | if(!empty($this->param['start_at']) && !empty($this->param['end_at'])){ |
| 169 | $query->where('created_at', '>=' ,$this->param['start_at'].' 00:00:00')->where('created_at', '<=' ,$this->param['end_at'].' 59:59:59'); | 172 | $query->where('created_at', '>=' ,$this->param['start_at'].' 00:00:00')->where('created_at', '<=' ,$this->param['end_at'].' 59:59:59'); |
| 170 | } | 173 | } |
| @@ -27,4 +27,5 @@ class LanguageController extends BaseController | @@ -27,4 +27,5 @@ class LanguageController extends BaseController | ||
| 27 | $lists = $webLanguageModel->list(); | 27 | $lists = $webLanguageModel->list(); |
| 28 | $this->response('success',Code::SUCCESS,$lists); | 28 | $this->response('success',Code::SUCCESS,$lists); |
| 29 | } | 29 | } |
| 30 | + | ||
| 30 | } | 31 | } |
| @@ -6,6 +6,7 @@ use App\Enums\Common\Code; | @@ -6,6 +6,7 @@ use App\Enums\Common\Code; | ||
| 6 | use App\Http\Controllers\Bside\BaseController; | 6 | use App\Http\Controllers\Bside\BaseController; |
| 7 | use App\Http\Logic\Aside\Domain\DomainInfoLogic; | 7 | use App\Http\Logic\Aside\Domain\DomainInfoLogic; |
| 8 | use App\Http\Logic\Bside\Setting\ProjectCountryLogic; | 8 | use App\Http\Logic\Bside\Setting\ProjectCountryLogic; |
| 9 | +use App\Models\WebSetting\LanguageTxt; | ||
| 9 | 10 | ||
| 10 | /** | 11 | /** |
| 11 | * @name:项目配置多语言设置 | 12 | * @name:项目配置多语言设置 |
| @@ -88,4 +89,24 @@ class ProjectCountryController extends BaseController | @@ -88,4 +89,24 @@ class ProjectCountryController extends BaseController | ||
| 88 | $info = $projectCountryLogic->country_custom_info(); | 89 | $info = $projectCountryLogic->country_custom_info(); |
| 89 | $this->response('success',Code::SUCCESS,$info); | 90 | $this->response('success',Code::SUCCESS,$info); |
| 90 | } | 91 | } |
| 92 | + | ||
| 93 | + /** | ||
| 94 | + * @remark :获取文本信息 | ||
| 95 | + * @name :getLanguageTxt | ||
| 96 | + * @author :lyh | ||
| 97 | + * @method :post | ||
| 98 | + * @time :2024/8/5 17:29 | ||
| 99 | + */ | ||
| 100 | + public function getLanguageTxt(){ | ||
| 101 | + $languageTxtModel = new LanguageTxt(); | ||
| 102 | + $data = $languageTxtModel->list(); | ||
| 103 | + $this->response('success',Code::SUCCESS,$data); | ||
| 104 | + } | ||
| 105 | + | ||
| 106 | + | ||
| 107 | + public function saveLanguageTxt(){ | ||
| 108 | + $languageTxtModel = new LanguageTxt(); | ||
| 109 | + $data = $languageTxtModel->list(); | ||
| 110 | + $this->response('success',Code::SUCCESS,$data); | ||
| 111 | + } | ||
| 91 | } | 112 | } |
app/Models/WebSetting/LanguageTxt.php
0 → 100644
| 1 | +<?php | ||
| 2 | +/** | ||
| 3 | + * @remark : | ||
| 4 | + * @name :LanguageTxt.php | ||
| 5 | + * @author :lyh | ||
| 6 | + * @method :post | ||
| 7 | + * @time :2024/8/5 17:36 | ||
| 8 | + */ | ||
| 9 | + | ||
| 10 | +namespace App\Models\WebSetting; | ||
| 11 | + | ||
| 12 | +use App\Models\Base; | ||
| 13 | + | ||
| 14 | +class LanguageTxt extends Base | ||
| 15 | +{ | ||
| 16 | + protected $table = 'gl_language_txt'; | ||
| 17 | + //连接数据库 | ||
| 18 | + protected $connection = 'custom_mysql'; | ||
| 19 | + | ||
| 20 | +} |
-
请 注册 或 登录 后发表评论