作者 刘锟

Merge remote-tracking branch 'origin/master' into akun

@@ -58,14 +58,23 @@ class InquiryController extends BaseController @@ -58,14 +58,23 @@ class InquiryController extends BaseController
58 if(!empty($data) && !empty($data['list'])){ 58 if(!empty($data) && !empty($data['list'])){
59 $email = $phone = []; 59 $email = $phone = [];
60 foreach ($data['list'] as $v){ 60 foreach ($data['list'] as $v){
61 - if(!empty($v['phone'])){  
62 - $phone[] = $v['phone'];  
63 - }  
64 - if(!empty($v['email'])){  
65 - $email[] = $v['email'];  
66 - } 61 + if(!empty($v['phone'])){$phone[] = $v['phone'];}
  62 + if(!empty($v['email'])){$email[] = $v['email'];}
67 } 63 }
  64 + $data = $this->handleMobile($data,$phone);
  65 + $data = $this->handleEmail($data,$email);
68 } 66 }
  67 + $this->response('success',Code::SUCCESS,$data);
  68 + }
  69 +
  70 + /**
  71 + * @remark :处理手机号码
  72 + * @name :handleMobile
  73 + * @author :lyh
  74 + * @method :post
  75 + * @time :2025/3/11 16:22
  76 + */
  77 + public function handleMobile($data,$phone){
69 if(!empty($phone)){ 78 if(!empty($phone)){
70 $phoneDataModel = new PhoneData(); 79 $phoneDataModel = new PhoneData();
71 $phoneDataList = $phoneDataModel->list(['phone'=>['in',$phone]]); 80 $phoneDataList = $phoneDataModel->list(['phone'=>['in',$phone]]);
@@ -80,6 +89,17 @@ class InquiryController extends BaseController @@ -80,6 +89,17 @@ class InquiryController extends BaseController
80 $data['list'][$key] = $value; 89 $data['list'][$key] = $value;
81 } 90 }
82 } 91 }
  92 + return $data;
  93 + }
  94 +
  95 + /**
  96 + * @remark :处理邮箱
  97 + * @name :handleEmail
  98 + * @author :lyh
  99 + * @method :post
  100 + * @time :2025/3/11 16:24
  101 + */
  102 + public function handleEmail($data,$email){
83 if(!empty($email)){ 103 if(!empty($email)){
84 $emailDataModel = new EmailData(); 104 $emailDataModel = new EmailData();
85 $emailDataList = $emailDataModel->list(['email'=>['in',$email]]); 105 $emailDataList = $emailDataModel->list(['email'=>['in',$email]]);
@@ -94,7 +114,7 @@ class InquiryController extends BaseController @@ -94,7 +114,7 @@ class InquiryController extends BaseController
94 $data['list'][$key] = $value; 114 $data['list'][$key] = $value;
95 } 115 }
96 } 116 }
97 - $this->response('success',Code::SUCCESS,$data); 117 + return $data;
98 } 118 }
99 119
100 /** 120 /**
@@ -27,7 +27,7 @@ class InquiryLogic extends BaseLogic @@ -27,7 +27,7 @@ class InquiryLogic extends BaseLogic
27 public function __construct() 27 public function __construct()
28 { 28 {
29 parent::__construct(); 29 parent::__construct();
30 - 30 + $this->param = $this->requestAll;
31 $this->form_globalso_api = new FormGlobalsoApi(); 31 $this->form_globalso_api = new FormGlobalsoApi();
32 } 32 }
33 33
@@ -213,7 +213,7 @@ class InquiryLogic extends BaseLogic @@ -213,7 +213,7 @@ class InquiryLogic extends BaseLogic
213 'phone_region'=>$data['phone_region'] ?? '', 213 'phone_region'=>$data['phone_region'] ?? '',
214 ]; 214 ];
215 if(!empty($param['phone_region'])){ 215 if(!empty($param['phone_region'])){
216 - $param['country'] = Translate::tran($this->param['phone_region'], 'zh') ?? ''; 216 + $param['country'] = Translate::tran($param['phone_region'], 'zh') ?? '';
217 } 217 }
218 (new PhoneData())->addReturnId($param); 218 (new PhoneData())->addReturnId($param);
219 return $this->success($param); 219 return $this->success($param);
  1 +<?php
  2 +/**
  3 + * @remark :
  4 + * @name :WebSettingYoutube.php
  5 + * @author :lyh
  6 + * @method :post
  7 + * @time :2025/3/11 15:51
  8 + */
  9 +
  10 +namespace App\Models\WebSetting;
  11 +
  12 +use App\Models\Base;
  13 +
  14 +/**
  15 + * @remark :youtube账号密码设置
  16 + * @name :WebSettingYoutube
  17 + * @author :lyh
  18 + * @method :post
  19 + * @time :2025/3/11 15:51
  20 + */
  21 +class WebSettingYoutube extends Base
  22 +{
  23 + protected $table = 'gl_web_setting_youtube';
  24 +}