This commit is contained in:
aozhiwei 2023-08-15 16:20:11 +08:00
parent 82a1d63c8d
commit ebc7c5a7d9
2 changed files with 26 additions and 1 deletions

View File

@ -1,6 +1,9 @@
<?php <?php
require_once('phpcommon/bignumber.php'); require_once('phpcommon/bignumber.php');
require_once('phpcommon/sqlhelper.php');
use phpcommon\SqlHelper;
class ToolsController extends BaseController { class ToolsController extends BaseController {
@ -139,6 +142,28 @@ class ToolsController extends BaseController {
public function outappRecharge() public function outappRecharge()
{ {
{
$obj = array(
'a' => 'safdf'
);
if (empty($obj['b'])) {
echo '22222';
}
//echo $obj['b'];
SqlHelper::update(
myself()->_getMysql(''),
't_user',
array(
'account_id' => getReqVal('account_id', '')
),
array(
'address' => null
)
);
error_log(json_encode($_REQUEST));
echo 1434;
}
return;
$orderInfo = null; $orderInfo = null;
{ {
$params = array( $params = array(

View File

@ -812,7 +812,7 @@ class UserController extends BaseAuthedController {
} }
error_log($response); error_log($response);
$rspObj = json_decode($response, true); $rspObj = json_decode($response, true);
if (!$rspObj['data']['address']){ if (empty($rspObj['data']['address'])) {
User::Update(array( User::Update(array(
'address' => null 'address' => null
)); ));