26 lines
443 B
PHP
26 lines
443 B
PHP
<?php
|
|
|
|
namespace models;
|
|
|
|
use mt;
|
|
use phpcommon\SqlHelper;
|
|
|
|
class InAppOrder extends BaseModel {
|
|
|
|
const PENDING_STATE = 0;
|
|
const FINISHED_STATE = 1;
|
|
const FAILED_STATE = 2;
|
|
|
|
public static function find($orderId) {
|
|
$row = SqlHelper::ormSelectOne(
|
|
myself()->_get(),
|
|
't_inapp_order',
|
|
array(
|
|
'order_id' => $orderId,
|
|
)
|
|
);
|
|
return $row;
|
|
}
|
|
|
|
}
|