| xqd
@@ -28,6 +28,7 @@ use EasyWeChat\Kernel\Messages\Text;
|
|
|
use Illuminate\Http\Request;
|
|
|
use Illuminate\Support\Facades\DB;
|
|
|
use Illuminate\Support\Facades\Log;
|
|
|
+use Tinify\Tinify;
|
|
|
use Validator, Response,Auth;
|
|
|
use App\Services\Base\ErrorCode;
|
|
|
use WXBizDataCrypt;
|
| xqd
@@ -1683,7 +1684,7 @@ class AlbumController extends Controller
|
|
|
|
|
|
public function test()
|
|
|
{
|
|
|
- $weChatApp = AlbumManufacturerModel::where('store_id', 1)->first();\Log::info('2221');
|
|
|
+ /*$weChatApp = AlbumManufacturerModel::where('store_id', 1)->first();\Log::info('2221');
|
|
|
$config = [
|
|
|
'app_id' => $weChatApp->G_app_id,
|
|
|
'secret' => $weChatApp->G_app_secret,
|
| xqd
@@ -1691,7 +1692,12 @@ class AlbumController extends Controller
|
|
|
];\Log::info('2224');
|
|
|
$app = Factory::officialAccount($config);
|
|
|
$text = new Text('111');//dd($text);
|
|
|
- $res_msg = $app->customer_service->message($text)->to('o_O0HuA4ugJG0npjLSL_Cd33FN8c')->send();dd($res_msg);
|
|
|
+ $res_msg = $app->customer_service->message($text)->to('o_O0HuA4ugJG0npjLSL_Cd33FN8c')->send();dd($res_msg);*/
|
|
|
+ //\Tinify\setKey('8NTpkbbHjKxSDxhWqNftM1cPDcQTs3CD');
|
|
|
+ //$source = \Tinify\fromUrl("https://tinypng.com/images/panda-happy.png");
|
|
|
+ //$source->toFile(public_path() . '/base/poster/download/111.png');
|
|
|
+
|
|
|
+ echo 111;
|
|
|
}
|
|
|
|
|
|
/**
|
| xqd
@@ -1825,7 +1831,7 @@ class AlbumController extends Controller
|
|
|
$url = "https://apis.map.qq.com/ws/geocoder/v1/?address=".$data['address']."&key=U5DBZ-X5VCO-6UUWV-SGPU3-PD5X2-NDFXA";
|
|
|
$local = $this->curl_get($url);
|
|
|
$res = json_decode($local,true);
|
|
|
-// /dd($res);
|
|
|
+ dd($res);
|
|
|
$agent_check = AlbumAgentModel::where([['store_id',$data['store_id']],['user_id',$userAuth->id]])->first();
|
|
|
if($agent_check){
|
|
|
if($agent_check->status==0) return $this->error(ErrorCode::CLIENT_WRONG_PARAMS, '该用户已提交申请!');
|