Category: ThinkPHP
-
Post Views: 14 1. In OneThink (ThinkPHP3.2.3), integrate the PHP-SDK2.0.4 of Alibaba Cloud OSS to realize direct transfer on the web, and the server-side signature is directly transmitted and uploaded callbacks, provided that you first refer to:https://www.shuijingwanwq.com/en/2016/01/13/10177/Implementation, set the CORS of Bucekt (Storage4-HMWIS-COM), as shown in Figure 0; 2. Check the practice of direct transmission on the web side of…
-
Post Views: 57 1. SDK installation github address: https://github.com/aliyun/aliyun-oss-php-sdk 2. Copy aliyun-oss-php-sdk-master\src\oss to passport.hmwis.com\thinkphp\library\vendor\oss, as shown in Figure 1 and 2 3. Register a new namespace OSS and edit the file passport.hmwis.com\application\common\conf\config.php, as shown in Figure 3 autoload_namespace=> array(additions=>OneThink_Addon_Path,oss=> Vendor_Path.oss), // Extension Module List 4. When instantiating the class library below the OSS, such as new oss\ossclient(); The corresponding class…
-
Post Views: 12 Because passport.xxx.com and soft.xxx.com are two secondary subdomains of xxx.com, in the case of both processing exit status, the Send a synchronization login notification through ucenter to realize login, but in many cases, passport.xxx.com and soft.xxx.com may One is the login status, the other is the logout state; at this time, you need to realize the synchronization…