添加解除限制的标记

This commit is contained in:
“wanyongkang”
2025-05-28 10:24:43 +08:00
parent 1a4dbef678
commit 24a9b4a960
3 changed files with 33 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ namespace app\jinyou\controller;
use extend\jinyouapi\Jinyou;
use fastphp\base\Controller;
use app\product\model\ProductAccount as AccountModel;
class Jinyoudt extends Controller
{
@@ -12,6 +13,15 @@ class Jinyoudt extends Controller
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,]);