kangdev/sinanhui

思南荟中台积分

2.0.2 2023-05-29 07:30 UTC

This package is auto-updated.

Last update: 2024-06-07 09:28:58 UTC


README

Install

composer require kangdev/sinanhui -vvv

Usage

<?php
$config = [
    'channel_no' => 'dc808c5e48454f43b',
    'url' => 'https://luya.huidaojia.net',
];

$server = new \Kangdev\Sinanhui\Server($config);

// 同步增加or减少积分接口
$res = $server->action_integral([
    'phone' => '15538586868',
    'integral' => 500,
    'datetime' => "2023-05-23 19:25:30",
    'order_no' => "hdj168291".rand(10,1000),
]);

echo $res;

// 获取中台积分用户核销二维码
$server->getIntegralCode([
    'phone' => '15538586868'
]);