You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
398 B

<?php
namespace app\appapi\controller\v1;
use app\appapi\ApiController;
use think\facade\Db;
class Test extends ApiController
{
public function test(){
$order = Db::name('order_info')
->where('order_id', 1071)
->find();
$res = \app\common\Affiliate::calculateProfitShare($order);
// print_r($order);
return json_encode($res);
}
}