|
...
|
...
|
@@ -5,6 +5,7 @@ namespace App\Http\Logic\Bside\Setting; |
|
|
|
use App\Http\Logic\Bside\BaseLogic;
|
|
|
|
use App\Models\Project\Country;
|
|
|
|
use App\Models\WebSetting\Proofreading;
|
|
|
|
use App\Models\WebSetting\WebSettingCountry;
|
|
|
|
|
|
|
|
class ProofreadingLogic extends BaseLogic
|
|
|
|
{
|
|
...
|
...
|
@@ -58,8 +59,15 @@ class ProofreadingLogic extends BaseLogic |
|
|
|
* @time :2023/6/12 15:54
|
|
|
|
*/
|
|
|
|
public function countryLanguageList($map,$order = 'created_at'){
|
|
|
|
$map['project_id'] = $this->user['project_id'];
|
|
|
|
$projectCountryModel = new Country();
|
|
|
|
$list = $projectCountryModel->list($map,$order);
|
|
|
|
$countryInfo = $projectCountryModel->read($map);
|
|
|
|
$list = [];
|
|
|
|
if(!empty($countryInfo['country_lists'])){
|
|
|
|
$countryArr = explode(".",$countryInfo['country_lists']);
|
|
|
|
$webCountryModel = new WebSettingCountry();
|
|
|
|
$list = $webCountryModel->list(['id'=>['in',$countryArr]]);
|
|
|
|
}
|
|
|
|
return $this->success($list);
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|