添加解除限制的标记
This commit is contained in:
@@ -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,]);
|
||||
|
||||
Reference in New Issue
Block a user