更新导出

parent 458ac1b9
......@@ -137,6 +137,14 @@ class HandleController extends Controller
}
private function e(){
$input['picking_type'] = 2;
$input['create_uid2'] = 6;
$client = new \Hprose\Http\Client("http://szyunxin.ichunt.com/server/putawayList",false);
$d = $client->putawayListServer(\GuzzleHttp\json_encode($input));
print_r($d);
die;
$input['create_uid2'] = 1; //用户id
$input['status'] = '-10,2'; //状态
$client = new \Hprose\Http\Client("http://yunxin.liexin.com/server/abnormlList",false);
......
......@@ -180,28 +180,21 @@ class ExportModel
$account = (new SupplierAccountModel())->select("appid","key")->where("id",$input['create_uid2'])->first();
if(!$account) return [1001,'不存在此用户id'];
$res = (new ServerFoostoneModel($account->appid,$account->key))->SkuList($input,2);
$res = (new ServerPurModel($account->appid,$account->key))->PutawayList($input,2);
if (empty(@$res['data']) || !count($res['data']) ){
return $res;
}
$out = [];
foreach ($res['data'] as $k=>$v){
array_push($out,[
'encoded'=>$v['encoded'],
'goods_type_name'=>$v['goods_type_name'],
'goods_name'=>$v['goods_name'],
'brand_name'=>$v['brand_name'],
'packing_name'=>$v['packing_name'],
'encap'=>$v['encap'],
'mpq'=>$v['mpq'],
'status_name'=>$v['status_name'],
'new_cost'=>$v['new_cost'],
'商家实际库存'=>"",
'LockStock'=>$v['LockStock'],
'stock'=>$v['stock'],
'putaway_sn'=>$v['putaway_sn'],
'picking_sn'=>$v['picking_sn'],
'amount'=>$v['amount'],
'currency'=>$v['currency'],
'pay_type'=>$v['pay_type'],
'create_time'=>$v['create_time'],
]);
}
$res['data'] = $out;
return $res;
}
......
......@@ -2,7 +2,7 @@
#不与线上环境同步
return [
"URL_EXPORT" =>"http://export.liexin.com",
"URL_EXPORT" =>"http://szexport.ichunt.net",
"URL_ICHUNT" =>"https://www.ichunt.com",
"URL_YUNXIN" => "http://yunxin.liexin.com",
"URL_FINANCE" => "http://finance.liexin.com",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment