Files
juipphp/app/jinyou/controller/Jinyoudt.php
2025-05-28 10:24:43 +08:00

29 lines
734 B
PHP

<?php
namespace app\jinyou\controller;
use extend\jinyouapi\Jinyou;
use fastphp\base\Controller;
use app\product\model\ProductAccount as AccountModel;
class Jinyoudt extends Controller
{
public function openTxLimit(){
$data = json_decode(file_get_contents("php://input"),true);
if(!$data){
die;
}
$where = [
'ProductId' => $data['productId'],
'DeleteTag' => 0,
'Account' => $data['account']
];
$account_model = new AccountModel;
$account_model->updateOne($where, ['im' => '1']);
$jinyou = new Jinyou();
$status = $jinyou::openTxLimit($data['account']);
echo json_encode(['Code'=>30000,]);
}
}