Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shuidaan opened this issue Oct 17, 2018 · 0 comments
Open

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

shuidaan opened this issue Oct 17, 2018 · 0 comments

Comments

@shuidaan
Copy link

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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant