PHP code example of zcold / settlement

1. Go to this page and download the library: Download zcold/settlement 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/ */

    

zcold / settlement example snippets


settlementAddData($tagId, $data, $num, $time)


$s = new Zcold\Settlement\Settlement();
/**
 * @param int $tagId 场景id
 * @param null $data 数据
 * @param int $num 次数
 * @param null $date_time 时间
 * @return bool
 */
$s->addData(1, [{user_id:1}, 1, '2021-03-04 10:15:00']);