wemall icon indicating copy to clipboard operation
wemall copied to clipboard

下载 优惠券 插件的时候出错

Open shuidaan opened this issue 5 years ago • 0 comments

http://addon.wemallshop.com/app/index/addOrder/id/4.html

end() expects parameter 1 to be array, null given if($order['addon_type']==1){ $addon_name = explode("-",$order['git_addon_name'])[1]; @mkdir('./zip/tmp'.$order['order_uuid'].'/addons/'.$order['git_location'].'/'.$addon_name, 0777, true); // git clone https://wemall:[email protected]/vue-sign.git // halt('git clone '.$git.$order["git_addon_name"].'.git ./zip/tmp'.$order['order_uuid'].'/addons/'.$order['git_location'].'/'.$addon_name); exec('git clone '.$git.$order["git_addon_name"].'.git ./zip/tmp'.$order['order_uuid'].'/addons/'.$order['git_location'].'/'.$addon_name); $command= $this->getHttpResponseGET('http://update.wemallshop.com/tags?system='.$order["git_addon_name"]); $item=json_decode($command,true);

        $git_addon_version=end($item['data']);
        // $command='cd '.$git.$order["git_addon_name"].'.git && git tag 2>&1';
        // exec($command,$out,$result);
        // $git_addon_version=end($out);
        
        if($order['git_name']){
            @mkdir('./zip/tmp'.$order['order_uuid'].'/tpl/addons/'.$order['git_location'].'/'.$addon_name, 0777, true);
        
       
            exec('git clone '.$git.$order['git_name'].'.git ./zip/tmp'.$order['order_uuid'].'/tpl/addons/'.$order['git_location'].'/'.$addon_name);

shuidaan avatar Oct 17 '18 05:10 shuidaan