PHP code example of guodaolinyi / zfjwxt
1. Go to this page and download the library: Download guodaolinyi/zfjwxt library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
guodaolinyi / zfjwxt example snippets
使用场景:饭卡余额查询
use zfjwxt\Ykt;
class YourController extends Controller
{
public function yourfunction()
{
$app = new Ykt($code, $pw, $url);
$balance = $app->getBalance();
...
}
}
使用场景:校内APP实名认证
use zfjwsys\Zfjwxt;
class YourController extends Controller
{
public function index()
{
$app = new Zfjwxt($code, $pw, $url);
$name=$app->getName();
...
}
}