<?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&&(string)($data['staffId']??'')===(string)$a['staff_id']&&($data['storeId']??null)===10001&&($data['date']??null)==='2026-10-11'&&\CoreGate::writer();\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,'Only exact own Serve capture');return true;}public static function push(string $action,array $data=[],int $delay=0):bool{throw new \RuntimeException('Unknown 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_WELLAND_ADD'?'72.75':'73.34');$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;}}
