Base.php 468 B

1234567891011121314151617181920
  1. <?php
  2. namespace App\Http\Controllers\Wechat;
  3. use App\Exceptions\AlertException;
  4. use Illuminate\Http\Request;
  5. use App\Http\Controllers\Controller;
  6. use Ixudra\Curl\Facades\Curl;
  7. class Base extends Controller
  8. {
  9. public static function getAccessToken()
  10. {
  11. $user_name = Config('wechat.fpdx.public_id');
  12. $access_token = \DB::table('public_access_token')->where('user_name', $user_name)->value('access_token');
  13. return $access_token;
  14. }
  15. }