|
@@ -3,6 +3,7 @@
|
|
|
namespace App\Http\Controllers\Web\Talent;
|
|
|
|
|
|
use App\Http\Controllers\Web\WebBaseController;
|
|
|
+use App\Services\Common\SmsService;
|
|
|
use PhpOffice\PhpSpreadsheet\Spreadsheet;
|
|
|
use PhpOffice\PhpSpreadsheet\IOFactory;
|
|
|
use Illuminate\Support\Facades\DB;
|
|
@@ -10,9 +11,16 @@ use App\Exceptions\ResponseException;
|
|
|
|
|
|
class JjhcController extends WebBaseController
|
|
|
{
|
|
|
+ private $smsService;
|
|
|
+ public function __construct(SmsService $smsService)
|
|
|
+ {
|
|
|
+ $this->smsService = $smsService;
|
|
|
+ }
|
|
|
|
|
|
public function test()
|
|
|
{
|
|
|
+ $a = $this->smsService->sendSms('13313826760', 'sms_buyhouse_supply', ['username'=>'林武','phone'=>'06','content'=>'25']);
|
|
|
+ dd($a);
|
|
|
throw new ResponseException("who are you?", [], 404);
|
|
|
// $list = DB::table('lt_apppointment')->distinct()->pluck('card')->toArray();
|
|
|
// $all = DB::table('lt_apppointment')->pluck('card')->toArray();
|