| xqd
@@ -8,6 +8,7 @@ use App\Models\DynamicModel;
|
|
|
use App\Models\User;
|
|
|
use App\Models\UserInfoModel;
|
|
|
use App\Services\JPushService;
|
|
|
+use App\Services\TencentImAccountService;
|
|
|
use Illuminate\Support\Facades\Storage;
|
|
|
use PHPUnit\Util\Exception;
|
|
|
|
| xqd
@@ -110,19 +111,18 @@ class TestController
|
|
|
}
|
|
|
|
|
|
public function jg_auth(){
|
|
|
- try {
|
|
|
- $oss_config = config("filesystems.disks.oss");
|
|
|
- $head = "https://".$oss_config['bucket'].'.'.$oss_config['endpoint'].'/';
|
|
|
- $disk = Storage::disk('oss');
|
|
|
- $url = "https://zhengda.oss-accelerate.aliyuncs.com/chengluApp/image_picker6848710558111085883.jpg";
|
|
|
-
|
|
|
- $url2 = str_replace($head,"",$url);
|
|
|
- dd($head,$url2);
|
|
|
- $res = $disk->exists($url2);
|
|
|
- }catch (\Exception $exception){
|
|
|
- dd($exception);
|
|
|
+
|
|
|
+ $tencent = new TencentImAccountService();
|
|
|
+ $arr = array();
|
|
|
+ for ($i=1;$i<100;$i++){
|
|
|
+ $ar = array();
|
|
|
+ $ar['UserID'] = 'IM_USER_TEST_'.$i;
|
|
|
+ $arr[]=$ar;
|
|
|
}
|
|
|
+ $res = $tencent->accountDelete($arr);
|
|
|
dd($res);
|
|
|
+
|
|
|
+
|
|
|
dd(GetDistance(30.720518,103.998353,30.721384,103.996072));
|
|
|
|
|
|
die;
|