作者 李宇航

合并分支 'lyh-server' 到 'master'

Lyh server



查看合并请求 !1682
@@ -1226,7 +1226,7 @@ public static function getCountryNameByAlpha3($alpha3) { @@ -1226,7 +1226,7 @@ public static function getCountryNameByAlpha3($alpha3) {
1226 if (array_key_exists($alpha3, $countries)) { 1226 if (array_key_exists($alpha3, $countries)) {
1227 return $countries[$alpha3]; 1227 return $countries[$alpha3];
1228 } else { 1228 } else {
1229 - return false; 1229 + return 'no';
1230 } 1230 }
1231 } 1231 }
1232 1232
@@ -41,7 +41,7 @@ class GoogleSearchController extends BaseController @@ -41,7 +41,7 @@ class GoogleSearchController extends BaseController
41 if($this->param['type'] == 'country'){ 41 if($this->param['type'] == 'country'){
42 $country = []; 42 $country = [];
43 foreach ($data['list'] as $val){ 43 foreach ($data['list'] as $val){
44 - $country[] = Country::getCountryNameByAlpha3($val['keys']); 44 + $country[] = Country::getCountryNameByAlpha3(strtoupper($val['keys']));
45 } 45 }
46 $zh_country = Translate::tran($country, 'zh'); 46 $zh_country = Translate::tran($country, 'zh');
47 foreach ($data['list'] as $key => $val){ 47 foreach ($data['list'] as $key => $val){
@@ -713,7 +713,7 @@ Route::middleware(['bloginauth'])->group(function () { @@ -713,7 +713,7 @@ Route::middleware(['bloginauth'])->group(function () {
713 Route::any('/del', [\App\Http\Controllers\Bside\SeoSetting\EnterpriseProductController::class, 'del'])->name('enterprise_product_del'); 713 Route::any('/del', [\App\Http\Controllers\Bside\SeoSetting\EnterpriseProductController::class, 'del'])->name('enterprise_product_del');
714 }); 714 });
715 //大模型会话 715 //大模型会话
716 - Route::prefix('grt')->group(function () { 716 + Route::prefix('gpt')->group(function () {
717 Route::any('/sendMessage', [\App\Http\Controllers\Bside\Gpt\ChatController::class, 'sendMessage'])->name('gpt_sendMessage'); 717 Route::any('/sendMessage', [\App\Http\Controllers\Bside\Gpt\ChatController::class, 'sendMessage'])->name('gpt_sendMessage');
718 }); 718 });
719 }); 719 });