This commit is contained in:
aozhiwei 2023-08-02 16:18:09 +08:00
parent 3cb7ba36a2
commit a79a11762e
2 changed files with 17 additions and 19 deletions

View File

@ -213,7 +213,7 @@ class ShopController extends BaseAuthedController {
$orderId = OrderId::gen(); $orderId = OrderId::gen();
$params = array( $params = array(
network, crypto, address, fiat, fiatAmount, payWayCode, country, accountId, orderId
); );
} }

View File

@ -18,24 +18,22 @@ use models\OutAppOrder;
use services\LogService; use services\LogService;
/* // let repdata = {
// let repdata = { // account_id: string
// account_id: string // order_id: string
// order_id: string // status: string
// status: string // id: string
// id: string // txhash: string
// txhash: string // }
// } // 我返回给你这些数据和一个sign字段,
// 我返回给你这些数据和一个sign字段, // sign使用上面 repdata 按key 顺序排后, 组成key1=val1&key2=val2后, 使用hmac_sha256 hash, key是
// sign使用上面 repdata 按key 顺序排后, 组成key1=val1&key2=val2后, 使用hmac_sha256 hash, key是 // PENDING = 0, // 初始状态
// PENDING = 0, // 初始状态 // TRANSFERING = 1, //只有国库模式才会有该状态
// TRANSFERING = 1, //只有国库模式才会有该状态 // TRANSFERED = 2, //只有国库模式才会有该状态
// TRANSFERED = 2, //只有国库模式才会有该状态 // SUCCESS = 9, // 成功的最终状态
// SUCCESS = 9, // 成功的最终状态 // TRANSFER_FAIL = 98, // 转账错误
// TRANSFER_FAIL = 98, // 转账错误 // FAIL = 99, // 也是错误
// FAIL = 99, // 也是错误 //
//
*/
class OutAppPurchase { class OutAppPurchase {