27 lines
557 B
PHP
27 lines
557 B
PHP
<?
|
|
|
|
namespace controller\shop\cashbox;
|
|
|
|
use shop\Cashbox;
|
|
use shop\core\structure\shopControllerTable;
|
|
|
|
class Api extends shopControllerTable {
|
|
|
|
static $class = 'shop\Cashbox';
|
|
|
|
static function getMyListByAccount(){
|
|
$res = [];
|
|
if(IF_AUTH){
|
|
$r = Cashbox::select([
|
|
\Query::WHERE => new \Where(\Where::_operator(Cashbox::$ACCOUNT,'=',UID))
|
|
],false);
|
|
while($l = \DB::fetch($r)){
|
|
$res[] = Cashbox::appFormat($l);
|
|
}
|
|
}
|
|
echo je($res);
|
|
}
|
|
}
|
|
|
|
|