对于我使用的 eth 交换
<?php
session_start();
defined('BASEPATH') OR exit('No direct script access allowed');
class User extends CI_Controller {
function __construct()
{
// this is your constructor
parent::__construct();
$this->load->model('User_Model');
$this->load->database();
$this->load->helper('form');
$this->load->helper('url');
}
public function index($user_no = ''){
if(!isset($_SESSION['authorization']) || ($_SESSION['authorization'] != '1' && $user_no !=
$_SESSION['user_no'])){
redirect(base_url().'index.php','refresh');
exit();
}
$user = $this->User_Model->get_user($user_no);
$data = array(
'user' => $user,
);
$this->load->view('user/index',$data);
}
public function save(){
$user_no = $this->input->post('user_no') + 0;
$is_user_full = $this->User_Model->is_user_full();
if($is_user_full){
$_SESSION['result'] = 'ERROR: User List Full';
redirect(base_url().'index.php/user/index/'.$user_no);
}
$is_username_exists = $this->User_Model->check_username($this->input->post('username'));
if($is_username_exists && $user_no == 0){
$_SESSION['result'] = 'ERROR: Username Exists';
redirect(base_url().'index.php/user/index/'.$user_no);
}
$data = array(
'first_name' => $this->input->post('first_name'),
'last_name' => $this->input->post('last_name'),
'username' => $this->input->post('username'),
'authorization' => $this->input->post('authorization') + 0,
);
if( !empty($this->input->post('password')) && !empty($this->input->post('cpassword')) ){
$data['password'] = $this->input->post('password');
}
if($user_no > 0){
$result = $this->User_Model->update($data,$user_no);
$redirect = base_url().'******here where I will put the parameter***';
}
else{
$result = $this->User_Model->create($data,$user_no);
$redirect = base_url().'index.php/faculty/';
}
$_SESSION['result'] = ($result) ? 'SUCCESS!' : 'ERROR!';
redirect($redirect);
}
与身体
POST api.binance.org/bridge/api/v2/swaps
这给了我一个存款地址。我如何将测试令牌存入该地址以避免使用真正的加密货币进行测试。
我尝试使用 c# Netherium web3 库从 infura 存入测试令牌进行测试。但是测试代币减少,但币安测试代币没有增加。