<?php
declare(strict_types=1);namespace app\common;
final class Serve{public static function pushJump(string $action,array $data=[]):bool{$a=\CoreGate::a();$valid=$action==='staffPower'&&count($data)===3&&isset($data['staffId'],$data['storeId'],$data['date'])&&(string)$data['staffId']===(string)$a['staff_id']&&$data['storeId']===10001&&$data['date']==='2026-10-11'&&in_array(\CoreGate::$scenario,['W1_MANUAL','W2_GOAL'],true);\event('serve-captures.jsonl',['scenario'=>\CoreGate::$scenario,'action'=>$action,'data'=>$data,'php_types'=>array_map('gettype',$data),'owned_parameters_valid'=>$valid,'real_queue_executed'=>false]);\ck($valid,'Exact newStaff queue boundary');return true;}public static function push(string $action,array $data=[],int $delay=0):bool{throw new \RuntimeException('Unexpected queue call');}}
final class UserApi{public function run($type,$params=[]):array{$a=\CoreGate::a();$want=['hs_user_id','user_name','department_id','department_name','department_parent_id','mobile','source','gender','birthday','height','weight'];$keys=array_keys($params);sort($keys);sort($want);$valid=$type===1&&$keys===$want&&(string)$params['hs_user_id']===(string)$a['user_id']&&$params['user_name']===$a['marker']&&$params['department_id']===10000&&$params['department_name']==='康比特CPT'&&$params['department_parent_id']==='-99'&&$params['mobile']==='00000009992'&&$params['source']===3&&(string)$params['gender']==='1'&&substr((string)$params['birthday'],0,10)==='2000-01-01'&&(string)$params['height']==='180.25'&&(string)$params['weight']===(\CoreGate::$scenario==='W1_MANUAL'?'72.34':'72.5');$result=['is_success'=>0,'hs_order_id'=>0,'zhct_user_id'=>0,'response'=>'ISOLATED_NO_REMOTE_SYNC'];\event('userapi-captures.jsonl',['scenario'=>\CoreGate::$scenario,'type'=>$type,'params'=>$params,'php_types'=>array_map('gettype',$params),'owned_parameters_valid'=>$valid,'real_http_executed'=>false,'isolated_result'=>$result]);\ck($valid,'Exact local UserApi failure boundary payload');return $result;}}
